![]() |
Synergy Software Package User's Manual
|
Driver for the Interrupt Controller Unit (ICU) External pin interrupts function. More...
Data Structures | |
| struct | icu_instance_ctrl_t |
Functions | |
| ssp_err_t | R_ICU_ExternalIrqOpen (external_irq_ctrl_t *const p_api_ctrl, external_irq_cfg_t const *const p_cfg) |
| Configure an external input pin for use with the button interface. Implements external_irq_api_t::open. More... | |
| ssp_err_t | R_ICU_ExternalIrqEnable (external_irq_ctrl_t *const p_api_ctrl) |
| Enable external interrupt for specified channel at NVIC. Implements external_irq_api_t::enable. More... | |
| ssp_err_t | R_ICU_ExternalIrqDisable (external_irq_ctrl_t *const p_api_ctrl) |
| Disable external interrupt for specified channel at NVIC. Implements external_irq_api_t::disable. More... | |
| ssp_err_t | R_ICU_ExternalIrqTriggerSet (external_irq_ctrl_t *const p_api_ctrl, external_irq_trigger_t hw_trigger) |
| Set trigger value provided. Implements external_irq_api_t::triggerSet. More... | |
| ssp_err_t | R_ICU_ExternalIrqFilterEnable (external_irq_ctrl_t *const p_api_ctrl) |
| Enable external interrupt digital filter for specified channel. Implements external_irq_api_t::filterEnable. More... | |
| ssp_err_t | R_ICU_ExternalIrqFilterDisable (external_irq_ctrl_t *const p_api_ctrl) |
| Enable external interrupt digital filter for specified channel. Implements external_irq_api_t::filterDisable. More... | |
| ssp_err_t | R_ICU_ExternalIrqVersionGet (ssp_version_t *const p_version) |
| Set driver version based on compile time macros. Implements external_irq_api_t::versionGet. More... | |
| ssp_err_t | R_ICU_ExternalIrqClose (external_irq_ctrl_t *const p_api_ctrl) |
| Disable external interrupt. Implements external_irq_api_t::close. More... | |
Driver for the Interrupt Controller Unit (ICU) External pin interrupts function.
Extends External IRQ Interface.
This module implements the External IRQ Interface using the external input pins in the Interrupt Controller Unit (ICU).
| ssp_err_t R_ICU_ExternalIrqClose | ( | external_irq_ctrl_t *const | p_api_ctrl | ) |
Disable external interrupt. Implements external_irq_api_t::close.
| SSP_SUCCESS | Successful close. |
| SSP_ERR_ASSERTION | The parameter p_ctrl is NULL. |
| SSP_ERR_NOT_OPEN | The channel is not opened. |
Cleanup. Disable interrupt
Disable the interrupt, and then clear the interrupt pending bits and interrupt status.
Release BSP hardware lock
| ssp_err_t R_ICU_ExternalIrqDisable | ( | external_irq_ctrl_t *const | p_api_ctrl | ) |
Disable external interrupt for specified channel at NVIC. Implements external_irq_api_t::disable.
| SSP_SUCCESS | Interrupt disabled successfully. |
| SSP_ERR_ASSERTION | The p_ctrl parameter was null. |
| SSP_ERR_NOT_OPEN | The channel is not opened. |
| SSP_ERR_INTERNAL | Requested IRQ is not defined in this system |
Disable the interrupt, and then clear the interrupt pending bits and interrupt status.
| ssp_err_t R_ICU_ExternalIrqEnable | ( | external_irq_ctrl_t *const | p_api_ctrl | ) |
Enable external interrupt for specified channel at NVIC. Implements external_irq_api_t::enable.
| SSP_SUCCESS | Interrupt Enabled successfully. |
| SSP_ERR_ASSERTION | The p_ctrl parameter was null. |
| SSP_ERR_NOT_OPEN | The channel is not opened. |
| SSP_ERR_INTERNAL | Requested IRQ is not defined in this system |
Clear the interrupt status and Pending bits, before the interrupt is enabled.
| ssp_err_t R_ICU_ExternalIrqFilterDisable | ( | external_irq_ctrl_t *const | p_api_ctrl | ) |
Enable external interrupt digital filter for specified channel. Implements external_irq_api_t::filterDisable.
| SSP_SUCCESS | External interrupt digital filter disabled successfully. |
| SSP_ERR_ASSERTION | The p_ctrl parameter was null. |
| SSP_ERR_NOT_OPEN | The channel is not opened. |
Disable external interrupt digital filter
| ssp_err_t R_ICU_ExternalIrqFilterEnable | ( | external_irq_ctrl_t *const | p_api_ctrl | ) |
Enable external interrupt digital filter for specified channel. Implements external_irq_api_t::filterEnable.
| SSP_SUCCESS | External interrupt digital filter enabled successfully. |
| SSP_ERR_ASSERTION | The p_ctrl parameter was null. |
| SSP_ERR_NOT_OPEN | The channel is not opened. |
Enable external interrupt digital filter
| ssp_err_t R_ICU_ExternalIrqOpen | ( | external_irq_ctrl_t *const | p_api_ctrl, |
| external_irq_cfg_t const *const | p_cfg | ||
| ) |
Configure an external input pin for use with the button interface. Implements external_irq_api_t::open.
The Open function is responsible for preparing an external input pin for operation. After completion of the Open function the external input pin shall be enabled and ready to service interrupts. This function must be called once prior to calling any other external input pin API functions. Once successfully completed, the status of the selected external input pin will be set to "open". After that this function should not be called again for the same external input pin without first performing a "close" by calling R_ICU_ExternalIrqClose().
| SSP_SUCCESS | Open successful. |
| SSP_ERR_ASSERTION | One of the following is invalid:
|
| SSP_ERR_INVALID_ARGUMENT | p_cfg->p_callback is not NULL, but ISR is not enabled. ISR must be enabled to use callback function. Enable channel's overflow ISR in bsp_irq_cfg.h. |
| SSP_ERR_IN_USE | The channel specified has already been opened. No configurations were changed. Call the associated Close function to reconfigure the channel. |
| SSP_ERR_IP_CHANNEL_NOT_PRESENT | Requested channel does not exist on this device. |
Get fmi feature information for ICU.
Acquire hardware lock for this specific external IRQ channel of the ICU
Initialize control block.
Configure interrupt if enabled
Perform hardware initializations based on configuration.
Mark the control block as open
| ssp_err_t R_ICU_ExternalIrqTriggerSet | ( | external_irq_ctrl_t *const | p_api_ctrl, |
| external_irq_trigger_t | hw_trigger | ||
| ) |
Set trigger value provided. Implements external_irq_api_t::triggerSet.
| SSP_SUCCESS | Period value written successfully. |
| SSP_ERR_ASSERTION | The p_ctrl or p_period parameter was null. |
| SSP_ERR_NOT_OPEN | The channel is not opened. |
Set trigger value provided
| ssp_err_t R_ICU_ExternalIrqVersionGet | ( | ssp_version_t *const | p_version | ) |
Set driver version based on compile time macros. Implements external_irq_api_t::versionGet.
| SSP_SUCCESS | Successful close. |
| SSP_ERR_ASSERTION | The parameter p_version is NULL. |
Read the driver version