Go to the documentation of this file.
65 #include "custom_config.h"
71 #define GUS_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
72 10 : CFG_MAX_CONNECTIONS)
75 #define GUS_MAX_DATA_LEN 247
76 #define GUS_FLOW_CTRL_LEN 1
77 #define GUS_SERVICE_UUID 0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
78 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x02, 0xED, 0xA6
Goodix UART Service init stucture. This contains all option and data needed for initialization of the...
Definition: gus.h:128
@ GUS_EVT_TX_FLOW_OFF
Definition: gus.h:95
@ GUS_EVT_TX_DATA_SENT
Definition: gus.h:90
@ GUS_EVT_TX_PORT_OPENED
Definition: gus.h:91
void(* gus_evt_handler_t)(gus_evt_t *p_evt)
Goodix UART Service event handler type.
Definition: gus.h:119
gus_evt_handler_t evt_handler
Definition: gus.h:129
@ GUS_EVT_FLOW_CTRL_ENABLE
Definition: gus.h:93
@ GUS_EVT_RX_DATA_RECEIVED
Definition: gus.h:89
@ GUS_EVT_TX_PORT_CLOSED
Definition: gus.h:92
gus_evt_type_t
Goodix UART Service event types.
Definition: gus.h:87
uint16_t length
Definition: gus.h:110
@ GUS_EVT_INVALID
Definition: gus.h:88
sdk_err_t gus_service_init(gus_init_t *p_gus_init)
Initialize a Goodix UART Service instance and add in the database.
@ GUS_EVT_TX_FLOW_ON
Definition: gus.h:96
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
sdk_err_t gus_rx_flow_ctrl_set(uint8_t conn_idx, uint8_t flow_ctrl)
Send GUS Rx flow control state to peer device.
gus_evt_type_t evt_type
Definition: gus.h:107
Goodix UART Service event.
Definition: gus.h:106
uint8_t conn_idx
Definition: gus.h:108
@ GUS_EVT_FLOW_CTRL_DISABLE
Definition: gus.h:94
sdk_err_t gus_tx_data_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send data to peer device.
uint8_t * p_data
Definition: gus.h:109