nRF5 SDK v13.0.0
Typedefs | Functions
Serialization Application Hardware Abstraction Layer (HAL)

Functions that set up hardware on Application Board and perform the reset of the Connectivity Board. More...

Typedefs

typedef void(* ser_app_hal_flash_op_done_handler_t )(bool success)
 

Functions

uint32_t ser_app_hal_hw_init (ser_app_hal_flash_op_done_handler_t handler)
 Function for initializing hardware modules. More...
 
void ser_app_hal_delay (uint32_t ms)
 Function for waiting for a given amount of time. More...
 
void ser_app_hal_nrf_reset_pin_clear (void)
 Function for clearing the Connectivity Chip reset pin. More...
 
void ser_app_hal_nrf_reset_pin_set (void)
 Function for setting the Connectivity Chip reset pin. More...
 
void ser_app_hal_nrf_evt_irq_priority_set (void)
 Function for setting the SoftDevice event interrupt priority that serves the events incoming from the Connectivity Chip. More...
 
void ser_app_hal_nrf_evt_pending (void)
 Function for setting a pending interrupt for serving events incoming from the Connectivity Chip. More...
 

Detailed Description

Functions that set up hardware on Application Board and perform the reset of the Connectivity Board.

Function Documentation

void ser_app_hal_delay ( uint32_t  ms)

Function for waiting for a given amount of time.

Parameters
[in]msNumber of milliseconds to wait.
uint32_t ser_app_hal_hw_init ( ser_app_hal_flash_op_done_handler_t  handler)

Function for initializing hardware modules.

Function can initialize hardware modules on the Application Chip. It is optional to implement. It is called once the Connectivity Chip is initialized.

Parameters
handlerFlash operation event handler.
Returns
NRF_SUCCESS HAL initialized successfully.
NRF_ERROR_... HAL initialization failed.
void ser_app_hal_nrf_evt_irq_priority_set ( void  )

Function for setting the SoftDevice event interrupt priority that serves the events incoming from the Connectivity Chip.

Note
Serialization solution on the application side mimics a SoC solution where events are handled in the interrupt context in two ways: either directly in the interrupt context or with a message being posted to the scheduler. However, it is possible that the Application Chip does not use a dedicated interrupt for connectivity events. In that case, this function can be left empty and ser_app_hal_nrf_evt_pending will directly call an interrupt handler function.
void ser_app_hal_nrf_evt_pending ( void  )

Function for setting a pending interrupt for serving events incoming from the Connectivity Chip.

Note
The interrupt used for event from the Connectivity Chip mimics behavior of SoC and it is not intended to be triggered by any hardware event. This function should be the only source of interrupt triggering.
void ser_app_hal_nrf_reset_pin_clear ( void  )

Function for clearing the Connectivity Chip reset pin.

void ser_app_hal_nrf_reset_pin_set ( void  )

Function for setting the Connectivity Chip reset pin.


Documentation feedback | Developer Zone | Subscribe | Updated