Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f286ce40 authored by Chris Manton's avatar Chris Manton
Browse files

legacy: Introduce rfcomm event types

Bug: 188297862
Test: gd/cert/run
Tag: #refactor

Change-Id: Ifbf145df2ebd1f17c2f16559c29d7f56905e9084
parent 0d17e739
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -188,6 +188,7 @@ inline std::string rfcomm_mx_state_text(tRFC_MX_STATE state) {
/*
 * Events that can be received by multiplexer as well as port state machines
*/
typedef uint8_t tRFC_EVENT;
#define RFC_EVENT_SABME 0
#define RFC_EVENT_UA 1
#define RFC_EVENT_DM 2
@@ -198,6 +199,7 @@ inline std::string rfcomm_mx_state_text(tRFC_MX_STATE state) {
/*
 * Multiplexer events
*/
typedef uint8_t tRFC_MX_EVENT;
#define RFC_MX_EVENT_START_REQ 6
#define RFC_MX_EVENT_START_RSP 7
#define RFC_MX_EVENT_CLOSE_REQ 8
@@ -211,6 +213,7 @@ inline std::string rfcomm_mx_state_text(tRFC_MX_STATE state) {
/*
 * Port events
*/
typedef uint8_t tRFC_PORT_EVENT;
#define RFC_EVENT_OPEN 9
#define RFC_EVENT_ESTABLISH_RSP 11
#define RFC_EVENT_CLOSE 12