Go to the documentation of this file.
64 #include "custom_config.h"
72 #define GUS_C_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
73 10 : CFG_MAX_CONNECTIONS)
81 #define GUS_SVC_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
82 0x0A, 0x46, 0x44, 0xD3, 0x01, 0x02, 0xED, 0xA6}
83 #define GUS_TX_CHAR_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
84 0x0A, 0x46, 0x44, 0xD3, 0x02, 0x02, 0xED, 0xA6}
85 #define GUS_RX_CHAR_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
86 0x0A, 0x46, 0x44, 0xD3, 0x03, 0x02, 0xED, 0xA6}
87 #define GUS_FLOW_CTRL_UUID {0x1B, 0xD7, 0x90, 0xEC, 0xE8, 0xB9, 0x75, 0x80,\
88 0x0A, 0x46, 0x44, 0xD3, 0x04, 0x02, 0xED, 0xA6}
120 uint16_t gus_srvc_start_handle;
121 uint16_t gus_srvc_end_handle;
122 uint16_t gus_tx_handle;
123 uint16_t gus_tx_cccd_handle;
124 uint16_t gus_rx_handle;
125 uint16_t gus_flow_ctrl_handle;
126 uint16_t gus_flow_ctrl_cccd_handle;
@ 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_EVT_DISCOVERY_COMPLETE
GUS Client has found service and its characteristics at peer.
@ GUS_C_EVT_PEER_DATA_RECEIVE
GUS Client has received something from peer.
@ GUS_C_EVT_TX_CPLT
GUS Client has sent something to peer successfully.
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.
Goodix UART Service Client event.
sdk_err_t gus_c_tx_notify_set(uint8_t conn_idx, bool is_enable)
Enable or disable peer GUS Tx characteristic notify.
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.
sdk_err_t gus_c_rx_flow_ctrl_set(uint8_t conn_idx, uint8_t flow_ctrl)
Send GUS Client Rx flow control state to peer device.
@ 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.