Infineon Logo AIROC BTSDK v4.9 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Multiple Interface Adapter (MIA)

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

Detailed Description

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.

Function Documentation

void wiced_hal_mia_enable_lhl_interrupt ( uint32_t  enable)

Enable or disable all LHL-based interrupts.

Parameters
enable- 1 to enable interrupts, 0 to disable interrupts.
Returns
none
void wiced_hal_mia_enable_mia_interrupt ( uint32_t  enable)

Enable or disable all MIA-based interrupts.

Parameters
enable- 1 to enable interrupts, 0 to disable interrupts.
Returns
none
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().

Returns
1 if lhl interrupts should be enabled, 0 if lhl interrupts should be disabled.
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().

Returns
1 if MIA interrupts should be enabled, 0 if MIA interrupts should be disabled.
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.

Parameters
none
Returns
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).

Parameters
none
Returns
reason - 1 if reset was caused by Power On Reset, 0 otherwise.
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.

Returns
none
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.

Returns
none