Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
pru_sensors.h File Reference
#include "pru.h"

Go to the source code of this file.

Data Structures

struct  pru_sensor_data_t
 Definition of PRU reporting data. More...
 

Functions

General API functions
void pru_sensors_init (pru_sm_handler_t pru_sm_handler)
 Initialize sensors and read default values. More...
 
void pru_sensors_read_all (void)
 Read PRU sensors.
 
const pru_sensor_data_tpru_sensors_data_get (void)
 Get the latest data from the PRU sensors. More...
 
uint32_t pru_sensor_alerts_get (bool *new_alert_occured, pru_alert_t *p_pru_alert)
 Extract alerts from the latest data read from PRU sensors. More...
 
uint32_t pru_sensors_board_read_all (pru_sensor_data_t *p_sensor_data)
 Read PRU HW specific sensors. More...
 
void pru_sensors_gen_evts (void)
 Generate PRU state machine events from sensor data. More...