nRF5 SDK v17.1.0
Typedefs | Enumerations | Functions | Variables

Module to declare HAL tasks library. More...

Typedefs

typedef void(* hal_task_handler_t )(void)
 Prototype of a HAL task handler. More...
 

Enumerations

enum  hal_task_id_t {
  HAL_TIMER_TASK_ID,
  HAL_UART_TASK_ID,
  HAL_TIMER_CRITICAL_MANUAL_TASK,
  HAL_TASKS_AMOUNT
}
 Identifiers for registered HAL handlers. More...
 

Functions

void hal_task_handler (void)
 
void hal_timer_task_handler (void)
 
void hal_uart_task_handler (void)
 
void hal_timer_critical_manual_handler (void)
 
static void hal_task_post (hal_task_id_t hal_task_id)
 Notify task scheduler to add a HAL task for execution. More...
 
static void hal_task_unpost (hal_task_id_t hal_task_id)
 Removes a task from pending list in HAL task scheduler. More...
 

Variables

volatile uint_fast16_t g_hal_tasks
 Pending HAL tasks. More...
 

Detailed Description

Module to declare HAL tasks library.

Typedef Documentation

typedef void(* hal_task_handler_t)(void)

Prototype of a HAL task handler.

Handler which will be called from HAL task.

Enumeration Type Documentation

Identifiers for registered HAL handlers.

enumeration with identifiers of registered HAL handlers. HAL handlers will be called from the HAL task.

Function Documentation

static void hal_task_post ( hal_task_id_t  hal_task_id)
inlinestatic

Notify task scheduler to add a HAL task for execution.

The function sets a marker for the HAL task for execution.

Parameters
[in]hal_task_idHAL task identifier (see hal_task_id_t enumeration).
static void hal_task_unpost ( hal_task_id_t  hal_task_id)
inlinestatic

Removes a task from pending list in HAL task scheduler.

The function removes a marker from the HAL execution list.

Parameters
[in]hal_task_idHAL task identifier (see hal_task_id_t enumeration).

Variable Documentation

volatile uint_fast16_t g_hal_tasks

Pending HAL tasks.

Variable which includes markers of pending HAL tasks.


Documentation feedback | Developer Zone | Subscribe | Updated