Go to the documentation of this file.
65 #include "custom_config.h"
71 #define GUS_CONNECTION_MAX 10
72 #define GUS_MAX_DATA_LEN 247
73 #define GUS_FLOW_CTRL_LEN 1
74 #define GUS_SERVICE_UUID 0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
75 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x02, 0xED, 0xA6
Goodix UART Service init stucture. This contains all option and data needed for initialization of the...
sdk_err_t gus_rx_flow_ctrl_set(uint8_t conn_idx, gus_flow_ctrl_state_t flow_ctrl)
Send GUS Rx flow control state to peer device.
void(* gus_evt_handler_t)(gus_evt_t *p_evt)
Goodix UART Service event handler type.
gus_evt_handler_t evt_handler
uint8_t gus_flow_ctrl_state_t
Underlying type used for the GUS flow control state.
@ GUS_EVT_FLOW_CTRL_ENABLE
uint16_t gus_service_start_handle_get(void)
Provide the interface for other modules to obtain the gus service start handle .
@ GUS_EVT_RX_DATA_RECEIVED
gus_evt_type_t
Goodix UART Service event types.
sdk_err_t gus_service_init(gus_init_t *p_gus_init)
Initialize a Goodix UART Service instance and add in the database.
uint16_t sdk_err_t
SDK API result type.
@ GUS_FLOW_CTRL_STATE_OFF
Goodix UART Service event.
gus_flow_ctrl_state
Flow control state for GUS service.
@ GUS_EVT_FLOW_CTRL_DISABLE
sdk_err_t gus_tx_data_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send data to peer device.