summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trxcon.h
blob: 6452f8038930a65c50ace8ac6b230fd2b25e31ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#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,

	/* Scheduler specific events */
	SCH_EVENT_CLCK_IND,
	SCH_EVENT_CLCK_LOSS,
	SCH_EVENT_DATA,
};