AIROC™ BTSDK v4.4 - Documentation | ||||
Defines a Multiple Interface Adapter (MIA) driver to facilitate interfacing with various components of the hardware The MIA driver controls aspects such as GPIO pin muxing, interrupt managment, and timing. More...
Functions | |
void | wiced_hal_mia_init (void) |
Initializes the MIA driver and its private values. More... | |
uint32_t | wiced_hal_mia_is_reset_reason_por (void) |
Determines and returns if the reason for the last reset was from Power On (Power On Reset). More... | |
void | wiced_hal_mia_enable_mia_interrupt (uint32_t enable) |
Enable or disable all MIA-based interrupts. More... | |
void | wiced_hal_mia_enable_lhl_interrupt (uint32_t enable) |
Enable or disable all LHL-based interrupts. More... | |
uint32_t | wiced_hal_mia_get_mia_interrupt_state (void) |
Get the MIA interrupt state. More... | |
uint32_t | wiced_hal_mia_get_lhl_interrupt_state (void) |
Get the LHL interrupt state. More... | |
void | wiced_hal_mia_restore_mia_interrupt_state (void) |
Restore the possibly overridden MIA interrupt setting to that of the MIA interrupt state. More... | |
void | wiced_hal_mia_restore_lhl_interrupt_state (void) |
Restore the possibly overridden LHL interrupt setting to that of the LHL interrupt state. More... | |
Defines a Multiple Interface Adapter (MIA) driver to facilitate interfacing with various components of the hardware The MIA driver controls aspects such as GPIO pin muxing, interrupt managment, and timing.
Use this driver to enable and disable interrupts, along with managing hardware events (such as PUART RX). There are many possibilities–please look over the following API functions to see what can be done.
void wiced_hal_mia_enable_lhl_interrupt | ( | uint32_t | enable | ) |
Enable or disable all LHL-based interrupts.
enable | - 1 to enable interrupts, 0 to disable interrupts. |
void wiced_hal_mia_enable_mia_interrupt | ( | uint32_t | enable | ) |
Enable or disable all MIA-based interrupts.
enable | - 1 to enable interrupts, 0 to disable interrupts. |
uint32_t wiced_hal_mia_get_lhl_interrupt_state | ( | void | ) |
Get the LHL interrupt state.
This state may not be the actual hardware LHL interrupt setting, since the interrupt context interrupt handler will disable the LHL interrupt without updating the state variable, which is a good thing since it makes it easy to restore the correct hardware setting from this state variable when done handling the serialized interrupt by calling wiced_hal_restoreLhlInterruptSetting().
uint32_t wiced_hal_mia_get_mia_interrupt_state | ( | void | ) |
Get the MIA interrupt state.
This state may not be the actual hardware MIA interrupt setting, since the interrupt context interrupt handler will disable the MIA interrupt without updating the state variable, which is a good thing since it makes it easy to restore the correct hardware setting from this state variable when done handling the serialized interrupt by calling wiced_hal_mia_restoreMiaInterruptState().
void wiced_hal_mia_init | ( | void | ) |
Initializes the MIA driver and its private values.
Also programs all relevant GPIOs to be ready for use. This must be invoked before accessing any MIA driver services, typically at boot. This is independent of other drivers and must be one of the first to be initialized.
none |
uint32_t wiced_hal_mia_is_reset_reason_por | ( | void | ) |
Determines and returns if the reason for the last reset was from Power On (Power On Reset).
none |
void wiced_hal_mia_restore_lhl_interrupt_state | ( | void | ) |
Restore the possibly overridden LHL interrupt setting to that of the LHL interrupt state.
See wiced_hal_getLhlInterruptState() for more details.
void wiced_hal_mia_restore_mia_interrupt_state | ( | void | ) |
Restore the possibly overridden MIA interrupt setting to that of the MIA interrupt state.
See wiced_hal_getMiaInterruptState() for more details.