Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
pru_sm.h
Go to the documentation of this file.
1 /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2  *
3  * The information contained herein is property of Nordic Semiconductor ASA.
4  * Terms and conditions of usage are described in detail in NORDIC
5  * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6  *
7  * Licensees are granted free, non-transferable use of the information. NO
8  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9  * the file.
10  *
11  */
12 
21 #ifndef PRU_SM_PRU_H__
22 #define PRU_SM_PRU_H__
23 
24 
26 typedef enum
27 {
28  PRU_SM_STATE_NULL,
29  PRU_SM_STATE_BOOT,
30  PRU_SM_STATE_PRU_ON,
31  PRU_SM_STATE_SYSTEM_ERROR,
32  PRU_SM_STATE_COUNT
34 
36 typedef enum
37 {
48 
49 /******************************************************************************/
52 /******************************************************************************/
53 
55 typedef struct
56 {
61 
69 
70 
72 #endif // PRU_SM_PRU_H__
73 
74 //lint -restore
75 
State machine state variables.
Definition: pru_sm.h:55
pru_sm_state_t
PRU states.
Definition: pru_sm.h:26
pru_sm_state_t prev_state
Definition: pru_sm.h:57
pru_sm_state_t current_state
Definition: pru_sm.h:58
pru_sm_signal_type_t
PRU state machine signal type.
Definition: pru_sm.h:36
pru_sm_state_t next_state
Definition: pru_sm.h:59
pru_sm_state_t pru_sm_execute(pru_sm_signal_type_t sig, pru_sm_state_vars_t *p_state)
Execute state machine.
Definition: pru_sm.c:71