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_TX_FLOW_OFF
GUS Client has received Tx flow off control request from peer.
@ GUS_C_EVT_DISCOVERY_FAIL
GUS Client found THS service failed because of invalid operation or no found at peer.
@ GUS_C_EVT_TX_FLOW_ON
GUS Client has received Tx flow on control request from peer.
@ GUS_C_FLOW_CTRL_STATE_OFF
Indicate that GUS Client can not receive data from peer.
uint8_t * p_data
Pointer to event data.
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.
uint8_t conn_idx
Connection index.
@ GUS_C_EVT_DISCOVERY_COMPLETE
GUS Client has found service and its characteristics at peer.
uint16_t gus_srvc_end_handle
GUS Service end handle.
@ GUS_C_EVT_PEER_DATA_RECEIVE
GUS Client has received something from peer.
uint16_t gus_rx_handle
Handle of GUS Rx characteristic as provided by a discovery.
uint16_t length
Length of event data.
@ GUS_C_EVT_TX_CPLT
GUS Client has sent something to peer successfully.
uint16_t gus_flow_ctrl_cccd_handle
Handle of CCCD of GUS Flow Control characteristic as provided by a discovery.
uint8_t gus_c_flow_ctrl_state_t
Underlying type used for the GUS Client flow control state.
uint16_t gus_tx_handle
Handle of GUS Tx characteristic as provided by a discovery.
sdk_err_t gus_c_tx_data_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send data to the server.
@ GUS_C_EVT_INVALID
Invalid GUS Client event.
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_WRITE_OP_ERR
Error occured when GUS Client wrote to peer.
gus_c_evt_type_t
Goodix UART Service Client event type.
@ GUS_C_EVT_RX_FLOW_UPDATE_CPLT
GUS CLient has updated flow control to peer completely.
Profile/Service Common Types.
uint16_t sdk_err_t
SDK API result type.
@ GUS_C_FLOW_CTRL_STATE_ON
Indicate that GUS Client can receive data from peer.
uint16_t gus_tx_cccd_handle
Handle of CCCD of GUS Tx characteristic as provided by a discovery.
uint16_t gus_flow_ctrl_handle
Handle of GUS Flow Control characteristic as provided by a discovery.
Goodix UART Service Client event.
gus_c_evt_type_t evt_type
GUS Client event type.
uint16_t gus_srvc_start_handle
GUS Service 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
GUS Client has set peer ble flow control notify.
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
GUS Client has set peer Tx notify.
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.