Functions
Functions
BLE Services » Goodix UART Service (GUS)

## Functions
sdk_err_t | gus_service_init (gus_init_t *p_gus_init)
| Initialize a Goodix UART Service instance and add in the database. More...
sdk_err_t | gus_tx_data_send (uint8_t conn_idx, uint8_t *p_data, uint16_t length)
| Send data to peer device. More...
sdk_err_t | gus_rx_flow_ctrl_set (uint8_t conn_idx, uint8_t flow_ctrl)
| Send GUS Rx flow control state to peer device. More...

## Detailed Description

## Function Documentation

## ◆ gus_rx_flow_ctrl_set()

sdk_err_t gus_rx_flow_ctrl_set | ( | uint8_t | conn_idx,
|  | uint8_t | flow_ctrl
| ) |  |

Send GUS Rx flow control state to peer device.

Parameters

  [in] | conn_idx | Index of the connection.
  [in] | flow_ctrl | GUS Rx flow control state

Returns
  Result of sending GUS Rx flow control state.

## ◆ gus_service_init()

sdk_err_t gus_service_init | ( | gus_init_t * | p_gus_init | ) |

Initialize a Goodix UART Service instance and add in the database.

Parameters

  [in] | p_gus_init | Pointer to Goodix UART Service initialization variables.

Returns
  Result of service initialization.

## ◆ gus_tx_data_send()

sdk_err_t gus_tx_data_send | ( | uint8_t | conn_idx,
|  | uint8_t * | p_data,
|  | uint16_t | length
| ) |  |

Send data to peer device.

Parameters

  [in] | conn_idx | Index of the connection.
  [in] | p_data | Pointer to sent data.
  [in] | length | Length of sent data.

Returns
  Result of sending data.