Go to the documentation of this file.
64 #include "custom_config.h"
72 #define GUS_C_CONNECTION_MAX 10
78 #define GUS_SVC_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
79 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x02, 0xED, 0xA6}
80 #define GUS_TX_CHAR_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
81 0x0A, 0x46, 0x44, 0xD3, 0x02, 0x02, 0xED, 0xA6}
82 #define GUS_RX_CHAR_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
83 0x0A, 0x46, 0x44, 0xD3, 0x03, 0x02, 0xED, 0xA6}
84 #define GUS_FLOW_CTRL_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
85 0x0A, 0x46, 0x44, 0xD3, 0x04, 0x02, 0xED, 0xA6}
@ GUS_C_EVT_DISCOVERY_FAIL
@ GUS_C_FLOW_CTRL_STATE_OFF
sdk_err_t gus_c_rx_flow_ctrl_set(uint8_t conn_idx, gus_c_flow_ctrl_state_t flow_ctrl)
Send GUS Client Rx flow control state to peer device.
@ GUS_C_EVT_DISCOVERY_COMPLETE
uint16_t gus_srvc_end_handle
@ GUS_C_EVT_PEER_DATA_RECEIVE
uint16_t gus_flow_ctrl_cccd_handle
uint8_t gus_c_flow_ctrl_state_t
Underlying type used for the GUS Client flow control state.
sdk_err_t gus_c_tx_data_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send data to the server.
Handles on the connected peer device needed to interact with it.
sdk_err_t gus_c_disc_srvc_start(uint8_t conn_idx)
Discovery GUS on peer.
gus_c_evt_type_t
Goodix UART Service Client event type.
@ GUS_C_EVT_RX_FLOW_UPDATE_CPLT
Profile/Service Common Types.
uint16_t sdk_err_t
SDK API result type.
@ GUS_C_FLOW_CTRL_STATE_ON
uint16_t gus_tx_cccd_handle
uint16_t gus_flow_ctrl_handle
Goodix UART Service Client event.
gus_c_evt_type_t evt_type
uint16_t gus_srvc_start_handle
sdk_err_t gus_c_tx_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer GUS Tx characteristic notify.
gus_c_flow_ctrl_state
Flow control state for GUS Client service.
sdk_err_t gus_client_init(gus_c_evt_handler_t evt_handler)
Register GUS Client event handler.
@ GUS_C_EVT_FLOW_CTRL_NTF_SET_SUCCESS
void(* gus_c_evt_handler_t)(gus_c_evt_t *p_evt)
Goodix UART Service Client event handler type.
@ GUS_C_EVT_TX_NTF_SET_SUCCESS
sdk_err_t gus_c_flow_ctrl_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer device GUS flow control notify.