1.6.4.4.2 Function ac_win_set_config()

Function used to setup interrupt selection of a window.

enum status_code ac_win_set_config( struct ac_module *const module_inst, enum ac_win_channel const win_channel, struct ac_win_config *const config)

This function is used to setup when an interrupt should occur for a given window.

Note: This must be done before enabling the channel.
Table 1-23. Parameters
Data directionParameter nameDescription

[in]

module_inst

Pointer to software instance struct

[in]

win_channel

Window channel to setup

[in]

config

Configuration for the given window channel

Table 1-24. Return Values
Return valueDescription

STATUS_OK

Function exited successful

STATUS_ERR_INVALID_ARG

win_channel argument incorrect