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

Defines a Multiple Interface Adapter (MIA) driver to facilitate interfacing with various components of the hardware. More...

Functions

static INLINE 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...
 
static INLINE BOOL32 wiced_hal_mia_get_mia_interrupt_state (void)
 Get the MIA interrupt state. More...
 
static INLINE BOOL32 wiced_hal_mia_get_lhl_interrupt_state (void)
 Get the LHL interrupt state. More...
 
static INLINE void wiced_hal_mia_restore_mia_interrupt_state (void)
 Restore the possibly overridden MIA interrupt setting to that of the MIA interrupt state. More...
 
static INLINE void wiced_hal_mia_restore_lhl_interrupt_state (void)
 Restore the possibly overridden LHL interrupt setting to that of the LHL interrupt state. More...
 
void wiced_hal_mia_notification_register_keyscan (void)
 keyscan notification has to be pre-registered. More...
 
void wiced_hal_mia_notification_register_quad (void)
 Quadrature notification has to be pre-registered. More...
 
void wiced_hal_mia_poll_hardware (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...
 

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

static INLINE BOOL32 wiced_hal_mia_get_lhl_interrupt_state ( void  )
static

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.
static INLINE BOOL32 wiced_hal_mia_get_mia_interrupt_state ( void  )
static

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.
static INLINE BOOL32 wiced_hal_mia_is_reset_reason_por ( void  )
static

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_notification_register_keyscan ( void  )

keyscan notification has to be pre-registered.

Parameters
none
Returns
none
void wiced_hal_mia_notification_register_quad ( void  )

Quadrature notification has to be pre-registered.

Parameters
none
Returns
none
void wiced_hal_mia_poll_hardware ( 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.

Parameters
none
Returns
none
static INLINE void wiced_hal_mia_restore_lhl_interrupt_state ( void  )
static

Restore the possibly overridden LHL interrupt setting to that of the LHL interrupt state.

See wiced_hal_getLhlInterruptState() for more details.

Returns
none
static INLINE void wiced_hal_mia_restore_mia_interrupt_state ( void  )
static

Restore the possibly overridden MIA interrupt setting to that of the MIA interrupt state.

See wiced_hal_getMiaInterruptState() for more details.

Returns
none