9.6.4.3.2 Function extint_nmi_set_config()
Writes an External Interrupt NMI channel configuration to the hardware module.
enum status_code extint_nmi_set_config( const uint8_t nmi_channel, const struct extint_nmi_conf *const config)
Writes out a given configuration of an External Interrupt NMI channel configuration to the hardware module. If the channel is already configured, the new configuration will replace the existing one.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in] |
nmi_channel |
External Interrupt NMI channel to configure |
|
[in] |
config |
Configuration settings for the channel |
Returns
Status code indicating the success or failure of the request.
| Return value | Description |
|---|---|
|
STATUS_OK |
Configuration succeeded |
|
STATUS_ERR_PIN_MUX_INVALID |
An invalid pinmux value was supplied |
|
STATUS_ERR_BAD_FORMAT |
An invalid detection mode was requested |
