Bluetooth RDTP Vendor Profile
- group BT_RDTP
-
Provide BT RDTP profile interfaces.
Functions
-
bool bt_rdtp_init(void)
-
Initialize RDTP profile.
- Return values:
true -- RDTP profile was initialized successfully.
false -- RDTP profile was failed to initialize.
- Returns:
-
The status of initializing RDTP profile.
-
void bt_rdtp_deinit(void)
-
De-initialize RDTP profile.
- Return values:
true -- RDTP profile was de-initialized successfully.
false -- RDTP profile was failed to de-initialize.
- Returns:
-
The status of de-initializing RDTP profile.
-
bool bt_rdtp_connect_req(uint8_t bd_addr[6])
-
Send a RDTP connection request.
- Parameters:
-
bd_addr -- [in] Remote BT address.
- Return values:
true -- RDTP connection request was sent successfully.
false -- RDTP connection request was failed to send.
- Returns:
-
The status of sending the RDTP connection request.
-
bool bt_rdtp_disconnect_req(uint8_t bd_addr[6])
-
Send a RDTP disconnection request.
- Parameters:
-
bd_addr -- [in] Remote BT address.
- Return values:
true -- RDTP disconnection request was sent successfully.
false -- RDTP disconnection request was failed to send.
- Returns:
-
The status of sending the RDTP disconnection request.
-
bool bt_rdtp_data_send(uint8_t bd_addr[6], void *buf, uint16_t len, bool flush)
-
Send data to remote device.
- Parameters:
bd_addr -- [in] Remote BT address.
buf -- [in] The start address of the data buffer.
len -- [in] The length of the data.
flush -- [in] Flush or not.
- Return values:
true -- Data was sent successfully.
false -- Data was failed to send.
- Returns:
-
The status of sending data to remote device.
-
bool bt_rdtp_init(void)