![]() |
Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
|
Function definition. More...
Function definition.
Functions | |
ble_status_t | decode_8bit (uint8_t *p_app_value, const st_ble_gatt_value_t *p_gatt_value) |
Decode data value for 8bit. More... | |
ble_status_t | encode_8bit (const uint8_t *p_app_value, st_ble_gatt_value_t *p_gatt_value) |
Encode data value for 8bit. More... | |
ble_status_t | decode_16bit (uint16_t *p_app_value, const st_ble_gatt_value_t *p_gatt_value) |
Decode data value for 16bit. More... | |
ble_status_t | encode_16bit (const uint16_t *p_app_value, st_ble_gatt_value_t *p_gatt_value) |
Encode data value for 16bit. More... | |
ble_status_t | decode_32bit (uint32_t *p_app_value, const st_ble_gatt_value_t *p_gatt_value) |
Decode data value for 32bit. More... | |
ble_status_t | encode_32bit (const uint32_t *p_app_value, st_ble_gatt_value_t *p_gatt_value) |
Encode data value for 32bit. More... | |
ble_status_t | decode_24bit (uint32_t *p_app_value, const st_ble_gatt_value_t *p_gatt_value) |
Decode data value for 24bit. More... | |
ble_status_t | encode_24bit (const uint32_t *p_app_value, st_ble_gatt_value_t *p_gatt_value) |
Encode data value for 24bit. More... | |
ble_status_t | decode_allcopy (uint8_t *p_app_value, const st_ble_gatt_value_t *p_gatt_value) |
Decode data value for 8bit array. More... | |
ble_status_t | encode_allcopy (const uint8_t *p_app_value, st_ble_gatt_value_t *p_gatt_value) |
Encode data value for 8bit array. More... | |
ble_status_t | decode_st_ble_seq_data_t (st_ble_seq_data_t *p_app_value, const st_ble_gatt_value_t *p_gatt_value) |
Decode data value for value type st_ble_seq_data_t. More... | |
ble_status_t | encode_st_ble_seq_data_t (const st_ble_seq_data_t *p_app_value, st_ble_gatt_value_t *p_gatt_value) |
Encode data value for value type st_ble_seq_data_t. More... | |
uint8_t | pack_st_ble_ieee11073_sfloat_t (uint8_t *p_dst, const st_ble_ieee11073_sfloat_t *p_src) |
Pack value type of st_ble_ieee11073_sfloat_t to GATT DB. More... | |
uint8_t | unpack_st_ble_ieee11073_sfloat_t (st_ble_ieee11073_sfloat_t *p_dst, const uint8_t *p_src) |
Unpack value type of st_ble_ieee11073_sfloat_t from GATT DB. More... | |
uint8_t | pack_st_ble_date_time_t (uint8_t *p_dst, const st_ble_date_time_t *p_src) |
Pack value type of st_ble_date_time_t to GATT DB. More... | |
uint8_t | unpack_st_ble_date_time_t (st_ble_date_time_t *p_dst, const uint8_t *p_src) |
Unpack value type of st_ble_date_time_t from GATT DB. More... | |
ble_status_t decode_8bit | ( | uint8_t * | p_app_value, |
const st_ble_gatt_value_t * | p_gatt_value | ||
) |
Decode data value for 8bit.
[out] | p_app_value | Application data value of characteristic or descriptor. |
[in] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t encode_8bit | ( | const uint8_t * | p_app_value, |
st_ble_gatt_value_t * | p_gatt_value | ||
) |
Encode data value for 8bit.
[in] | p_app_value | Application data value of characteristic or descriptor. |
[out] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t decode_16bit | ( | uint16_t * | p_app_value, |
const st_ble_gatt_value_t * | p_gatt_value | ||
) |
Decode data value for 16bit.
[out] | p_app_value | Application data value of characteristic or descriptor. |
[in] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t encode_16bit | ( | const uint16_t * | p_app_value, |
st_ble_gatt_value_t * | p_gatt_value | ||
) |
Encode data value for 16bit.
[in] | p_app_value | Application data value of characteristic or descriptor. |
[out] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t decode_32bit | ( | uint32_t * | p_app_value, |
const st_ble_gatt_value_t * | p_gatt_value | ||
) |
Decode data value for 32bit.
[out] | p_app_value | Application data value of characteristic or descriptor. |
[in] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t encode_32bit | ( | const uint32_t * | p_app_value, |
st_ble_gatt_value_t * | p_gatt_value | ||
) |
Encode data value for 32bit.
[in] | p_app_value | Application data value of characteristic or descriptor. |
[out] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t decode_24bit | ( | uint32_t * | p_app_value, |
const st_ble_gatt_value_t * | p_gatt_value | ||
) |
Decode data value for 24bit.
[out] | p_app_value | Application data value of characteristic or descriptor. |
[in] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t encode_24bit | ( | const uint32_t * | p_app_value, |
st_ble_gatt_value_t * | p_gatt_value | ||
) |
Encode data value for 24bit.
[in] | p_app_value | Application data value of characteristic or descriptor. |
[out] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t decode_allcopy | ( | uint8_t * | p_app_value, |
const st_ble_gatt_value_t * | p_gatt_value | ||
) |
Decode data value for 8bit array.
[out] | p_app_value | Application data value of characteristic or descriptor. |
[in] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t encode_allcopy | ( | const uint8_t * | p_app_value, |
st_ble_gatt_value_t * | p_gatt_value | ||
) |
Encode data value for 8bit array.
[in] | p_app_value | Application data value of characteristic or descriptor. |
[out] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t decode_st_ble_seq_data_t | ( | st_ble_seq_data_t * | p_app_value, |
const st_ble_gatt_value_t * | p_gatt_value | ||
) |
Decode data value for value type st_ble_seq_data_t.
[out] | p_app_value | Application data value of characteristic or descriptor. |
[in] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
ble_status_t encode_st_ble_seq_data_t | ( | const st_ble_seq_data_t * | p_app_value, |
st_ble_gatt_value_t * | p_gatt_value | ||
) |
Encode data value for value type st_ble_seq_data_t.
[in] | p_app_value | Application data value of characteristic or descriptor. |
[out] | p_gatt_value | GATT database value and length of characteristic or descriptor. |
uint8_t pack_st_ble_ieee11073_sfloat_t | ( | uint8_t * | p_dst, |
const st_ble_ieee11073_sfloat_t * | p_src | ||
) |
Pack value type of st_ble_ieee11073_sfloat_t to GATT DB.
[out] | p_dst | GATT database value of characteristic or descriptor. |
[in] | p_src | Application value field which is st_ble_ieee11073_sfloat_t type. |
uint8_t unpack_st_ble_ieee11073_sfloat_t | ( | st_ble_ieee11073_sfloat_t * | p_dst, |
const uint8_t * | p_src | ||
) |
Unpack value type of st_ble_ieee11073_sfloat_t from GATT DB.
[out] | p_dst | Application value field which is st_ble_ieee11073_sfloat_t type. |
[in] | p_src | GATT database value of characteristic or descriptor. |
uint8_t pack_st_ble_date_time_t | ( | uint8_t * | p_dst, |
const st_ble_date_time_t * | p_src | ||
) |
Pack value type of st_ble_date_time_t to GATT DB.
[out] | p_dst | GATT database value of characteristic or descriptor. |
[in] | p_src | Application value field which is st_ble_date_time_t type. |
uint8_t unpack_st_ble_date_time_t | ( | st_ble_date_time_t * | p_dst, |
const uint8_t * | p_src | ||
) |
Unpack value type of st_ble_date_time_t from GATT DB.
[out] | p_dst | Application value field which is st_ble_date_time_t type. |
[in] | p_src | GATT database value of characteristic or descriptor. |