diff options
Diffstat (limited to 'src/host/trxcon/trxcon.h')
-rw-r--r-- | src/host/trxcon/trxcon.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/host/trxcon/trxcon.h b/src/host/trxcon/trxcon.h new file mode 100644 index 00000000..a7a3a65f --- /dev/null +++ b/src/host/trxcon/trxcon.h @@ -0,0 +1,19 @@ +#pragma once + +#define GEN_MASK(state) (0x01 << state) + +enum trxcon_fsm_states { + TRXCON_STATE_IDLE = 0, + TRXCON_STATE_MANAGED, +}; + +enum trxcon_fsm_events { + /* L1CTL specific events */ + L1CTL_EVENT_CONNECT, + L1CTL_EVENT_DISCONNECT, + + /* TRX specific events */ + TRX_EVENT_RESET_IND, + TRX_EVENT_RSP_ERROR, + TRX_EVENT_OFFLINE, +}; |