Appiko
Data Structures | Enumerations | Functions

Hardware abstraction layer of the PPI peripheral in the nRF52 SoCs. More...

Data Structures

struct  hal_ppi_setup_t
 

Enumerations

enum  ppi_setup_status_t {
  PPI_SETUP_SUCCESSFUL = 0x00, PPI_INVALID_EVENT = 0x01, PPI_INVALID_TASK = 0x02, PPI_INVALID_FORK = 0x04,
  PPI_INVALID_CH = 0x08, PPI_INVALID_PERIPHERAL = 0x10
}
 

Functions

ppi_setup_status_t hal_ppi_set (hal_ppi_setup_t *setup)
 Function to setup a PPI. More...
 
void hal_ppi_en_ch (uint32_t ppi_id)
 Function to Enable given PPI channel. More...
 
void hal_ppi_dis_ch (uint32_t ppi_id)
 Function to disable given PPI channel. More...
 
void hal_ppi_set_event (uint32_t ppi_id, uint32_t new_event)
 Function to set triggering event for given PPI channel. More...
 
void hal_ppi_set_task (uint32_t ppi_id, uint32_t new_task)
 Function to change primary task for given PPI channel. More...
 
void hal_ppi_set_fork (uint32_t ppi_id, uint32_t new_fork)
 Function to set secondary task for given PPI channel. More...
 

Detailed Description

Enumeration Type Documentation

◆ ppi_setup_status_t

List of possible errors

Enumerator
PPI_SETUP_SUCCESSFUL 

No Error

PPI_INVALID_EVENT 

Invalid Event

PPI_INVALID_TASK 

Invalid Task

PPI_INVALID_FORK 

Invalid Fork

PPI_INVALID_CH 

Invalid Channel

PPI_INVALID_PERIPHERAL 

Invalid Peripheral

Definition at line 34 of file hal_ppi.h.

Function Documentation

◆ hal_ppi_dis_ch()

void hal_ppi_dis_ch ( uint32_t  ppi_id)
Parameters
ppi_idPPI channel which is to be disabled

Definition at line 73 of file hal_ppi.c.

◆ hal_ppi_en_ch()

void hal_ppi_en_ch ( uint32_t  ppi_id)
Parameters
ppi_idPPI channel which is to be enabled

Definition at line 68 of file hal_ppi.c.

◆ hal_ppi_set()

ppi_setup_status_t hal_ppi_set ( hal_ppi_setup_t setup)

◆ hal_ppi_set_event()

void hal_ppi_set_event ( uint32_t  ppi_id,
uint32_t  new_event 
)
Parameters
ppi_idPPI channel for which triggering event is to be set
new_eventNew triggering event

Definition at line 78 of file hal_ppi.c.

◆ hal_ppi_set_fork()

void hal_ppi_set_fork ( uint32_t  ppi_id,
uint32_t  new_fork 
)
Parameters
ppi_idPPI channel for which secondary task is to be set
new_forkNew secondary task

Definition at line 88 of file hal_ppi.c.

◆ hal_ppi_set_task()

void hal_ppi_set_task ( uint32_t  ppi_id,
uint32_t  new_task 
)
Parameters
ppi_idPPI channel for which primary task is to be changed
new_taskNew primary task

Definition at line 83 of file hal_ppi.c.