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

	/* TRX specific events */
	TRX_EVENT_RESET_IND,
	TRX_EVENT_RSP_ERROR,
	TRX_EVENT_OFFLINE,
};