Functions | |
sdk_err_t | gus_client_init (gus_c_evt_handler_t evt_handler) |
Register GUS Client event handler. More... | |
sdk_err_t | gus_c_disc_srvc_start (uint8_t conn_idx) |
Discovery GUS on peer. More... | |
sdk_err_t | gus_c_tx_notify_set (uint8_t conn_idx, bool is_enable) |
Enable or disable peer GUS Tx characteristic notify. More... | |
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. More... | |
sdk_err_t | gus_c_tx_data_send (uint8_t conn_idx, uint8_t *p_data, uint16_t length) |
Send data to the server. More... | |
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. More... | |
sdk_err_t gus_c_disc_srvc_start | ( | uint8_t | conn_idx | ) |
Discovery GUS on peer.
[in] | conn_idx | Index of connection. |
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.
[in] | conn_idx | Connection index. |
[in] | is_enable | Enable or disable ths Tx notify. |
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.
[in] | conn_idx | Connection index. |
[in] | flow_ctrl | GUS client Rx 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.
[in] | conn_idx | Connection index. |
[in] | p_data | Pointer to data need sent. |
[in] | length | Length of data need sent. |
sdk_err_t gus_c_tx_notify_set | ( | uint8_t | conn_idx, |
bool | is_enable | ||
) |
Enable or disable peer GUS Tx characteristic notify.
[in] | conn_idx | Connection index. |
[in] | is_enable | Enable or disable ths Tx notify. |
sdk_err_t gus_client_init | ( | gus_c_evt_handler_t | evt_handler | ) |
Register GUS Client event handler.
[in] | evt_handler | Goodix UART Service Client event handler. |