nRF5 SDK v17.1.0
Typedefs | Enumerations | Functions | Variables
HAL UART Task Scheduler

Module to declare HAL UART Task Scheduler interface. More...

Typedefs

typedef void(* hal_uart_task_handler_t )(uint32_t channel)
 Prototype of a UART task handler. More...
 

Enumerations

enum  hal_uart_task_id_t {
  HAL_UART_RX_TASK_ID,
  HAL_UART_TX_TASK_ID,
  HAL_UART_ERROR_TASK_ID,
  HAL_UART_TASKS_AMOUNT
}
 Identifiers for registered UART event handlers. More...
 

Functions

void hal_uart_rx_handler (uint32_t channel)
 
void hal_uart_tx_handler (uint32_t channel)
 
void hal_uart_error_handler (uint32_t channel)
 
static void hal_uart_task_post (uint32_t channel, uint8_t hal_uart_task_id)
 Notifies HAL task scheduler to add an UART task for execution. More...
 

Variables

volatile uint16_t g_hal_uart_modules_tasks [CONFIG_HAL_UART_CHANNELS]
 UART channels. More...
 

Detailed Description

Module to declare HAL UART Task Scheduler interface.

Typedef Documentation

typedef void(* hal_uart_task_handler_t)(uint32_t channel)

Prototype of a UART task handler.

Handler which will be called from HAL_UART task.

Enumeration Type Documentation

Identifiers for registered UART event handlers.

enumeration with identifiers of registered UART event handlers. UART handlers will be called from the HAL_UART task.

Function Documentation

static void hal_uart_task_post ( uint32_t  channel,
uint8_t  hal_uart_task_id 
)
inlinestatic

Notifies HAL task scheduler to add an UART task for execution.

The function sets a marker for the UART event task for execution. And sets this marker for a channel where event happened.

Parameters
[in]channelevent channel.
[in]hal_uart_task_idHAL task identificator.

Variable Documentation

volatile uint16_t g_hal_uart_modules_tasks[CONFIG_HAL_UART_CHANNELS]

UART channels.

Array which includes event id for every channel it happened.


Documentation feedback | Developer Zone | Subscribe | Updated