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.

Table 9-10. Parameters
Data directionParameter nameDescription

[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.

Table 9-11. Return Values
Return valueDescription

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