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, gus_flow_ctrl_state_t flow_ctrl)
| Send GUS Rx flow control state to peer device. More...
uint16_t | gus_service_start_handle_get (void)
| Provide the interface for other modules to obtain the gus service start handle . More...

## Detailed Description

## Function Documentation

## ◆ gus_rx_flow_ctrl_set()

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

Send GUS Rx flow control state to peer device.

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_service_start_handle_get()

uint16_t gus_service_start_handle_get | ( | void |  | ) |

Provide the interface for other modules to obtain the gus service start handle .

Returns
  The gus service start handle.

## ◆ 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.