Functions
Functions
BLE Services » Glucose Service Record Access Control Point (GLS_RACP)
Collaboration diagram for Functions:

## Functions
gls_racp_operand_t | gls_racp_req_decode (const uint8_t *p_data, uint16_t length, gls_racp_req_t *p_racp_req)
| Decode record access control point request. More...
uint16_t | gls_racp_rsp_encode (gls_racp_rsp_t *p_racp_rsp, uint8_t *p_encoded_buffer)
| Encode record access control point response. More...
int8_t | gls_racp_user_time_compare (prf_date_time_t *p_compared_date_time, prf_date_time_t *p_base_date_time)
| Compared two date time. More...

## Detailed Description

## Function Documentation

## ◆ gls_racp_req_decode()

gls_racp_operand_t gls_racp_req_decode | ( | const uint8_t * | p_data,
|  | uint16_t | length,
|  | gls_racp_req_t * | p_racp_req
| ) |  |

Decode record access control point request.

Parameters

  [in] | p_data | Pointer to data.
  [in] | length | Length of data.
  [out] | p_racp_req | Potnter to buffer saved decode result.

Returns
  Record access control point request decode result.

## ◆ gls_racp_rsp_encode()

uint16_t gls_racp_rsp_encode | ( | gls_racp_rsp_t * | p_racp_rsp,
|  | uint8_t * | p_encoded_buffer
| ) |  |

Encode record access control point response.

Parameters

  [in] | p_racp_rsp | Pointer to buffer saved response.
  [out] | p_encoded_buffer | Pointer to buffer where the encoded data will be written.

Returns
  Length of encode data.

## ◆ gls_racp_user_time_compare()

int8_t gls_racp_user_time_compare | ( | prf_date_time_t * | p_compared_date_time,
|  | prf_date_time_t * | p_base_date_time
| ) |  |

Compared two date time.

Parameters

  [in] | p_compared_date_time | Pointer to compared date time.
  [out] | p_base_date_time | Pointer to base date time.

Returns
  Result of compared. 1: compared_date_time > base_date_time. -1: compared_date_time < base_date_time 0: compared_date_time = base_date_time