Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
pru_sm.h File Reference

Go to the source code of this file.

Data Structures

struct  pru_sm_state_vars_t
 State machine state variables. More...
 

Enumerations

enum  pru_sm_state_t {
  PRU_SM_STATE_NULL, PRU_SM_STATE_BOOT, PRU_SM_STATE_PRU_ON, PRU_SM_STATE_SYSTEM_ERROR,
  PRU_SM_STATE_COUNT
}
 PRU states.
 
enum  pru_sm_signal_type_t {
  PRU_SM_SIGNAL_NULL, PRU_SM_SIGNAL_CHARGE_START, PRU_SM_SIGNAL_CHARGE_STOP, PRU_SM_SIGNAL_POWER_APPLIED,
  PRU_SM_SIGNAL_POWER_REMOVED, PRU_SM_SIGNAL_CHARGE_COMPLETE, PRU_SM_SIGNAL_DISCONNECTED, PRU_SM_SIGNAL_SYSTEM_ERROR,
  PRU_SM_SIGNAL_COUNT
}
 PRU state machine signal type. More...
 

Functions

PRU state functions.
pru_sm_state_t pru_sm_execute (pru_sm_signal_type_t sig, pru_sm_state_vars_t *p_state)
 Execute state machine. More...