AIROC™ BTSDK v4.9 - 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... | |
BOOL32 | 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... | |
BOOL32 | wiced_hal_mia_is_reset_reason_hid_timeout (void) |
Determines and returns if the reason for the last reset was from hid off timer. More... | |
void | wiced_hal_mia_enable_mia_interrupt (BOOL32 enable) |
Enable or disable all MIA-based interrupts. More... | |
void | wiced_hal_mia_enable_lhl_interrupt (BOOL32 enable) |
Enable or disable all LHL-based interrupts. More... | |
void | wiced_hal_mia_pollHardware (void) |
If the HW has seen any change in KS or Quad, this will freeze Mia clock, extract the event from HW FIFO and then unfreeze clock. More... | |
BOOL32 | wiced_hal_mia_get_mia_interrupt_state (void) |
Get the MIA interrupt state. More... | |
BOOL32 | 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 | ( | BOOL32 | enable | ) |
Enable or disable all LHL-based interrupts.
enable | - 1 to enable interrupts, 0 to disable interrupts. |
void wiced_hal_mia_enable_mia_interrupt | ( | BOOL32 | enable | ) |
Enable or disable all MIA-based interrupts.
enable | - 1 to enable interrupts, 0 to disable interrupts. |
BOOL32 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().
BOOL32 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 |
BOOL32 wiced_hal_mia_is_reset_reason_hid_timeout | ( | void | ) |
Determines and returns if the reason for the last reset was from hid off timer.
none |
BOOL32 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_pollHardware | ( | void | ) |
If the HW has seen any change in KS or Quad, this will freeze Mia clock, extract the event from HW FIFO and then unfreeze clock.
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.