mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
req_ctx: Add better explanation about the various states
This commit is contained in:
@@ -11,16 +11,27 @@
|
||||
#define __ramfunc
|
||||
|
||||
enum req_ctx_state {
|
||||
/* free to be allocated */
|
||||
RCTX_S_FREE,
|
||||
|
||||
/* USB -> UART */
|
||||
/* In USB driver, waiting for data from host */
|
||||
RCTX_S_USB_RX_BUSY,
|
||||
/* somewhere in the main loop */
|
||||
RCTX_S_MAIN_PROCESSING,
|
||||
/* pending (in queue) for transmission on UART */
|
||||
RCTX_S_UART_TX_PENDING,
|
||||
/* currently in active transmission on UART */
|
||||
RCTX_S_UART_TX_BUSY,
|
||||
|
||||
/* UART -> USB */
|
||||
/* currently in active reception on UART */
|
||||
RCTX_S_UART_RX_BUSY,
|
||||
/* pending (in queue) for transmission over USB to host */
|
||||
RCTX_S_USB_TX_PENDING,
|
||||
/* currently in transmission over USB to host */
|
||||
RCTX_S_USB_TX_BUSY,
|
||||
|
||||
/* number of states */
|
||||
RCTX_STATE_COUNT
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user