Classes | Macros | Enumerations | Functions
gls_racp.h File Reference

Glucose Service Record Access Control Point API. More...

`#include "ble_prf_types.h"`
`#include "gr_includes.h"`
`#include <stdint.h>`
`#include <stdbool.h>`

Go to the source code of this file.

## Classes
struct | gls_racp_filter_t
| Glucose Recoerd Access Control Point filter value. More...
struct | gls_racp_req_t
| Glucose Recoerd Access Control Point request value. More...
struct | gls_racp_rsp_t
| Glucose Recoerd Access Control Point response value. More...

## Macros
#define | GLS_RACP_FILTER_SEQ_NUM_LEN 2
#define | GLS_RACP_FILTER_USER_TIME_LEN 7

## Enumerations
enum | gls_racp_op_code_t { GLS_RACP_OP_RESERVED, GLS_RACP_OP_REP_STRD_RECS, GLS_RACP_OP_DEL_STRD_RECS, GLS_RACP_OP_ABORT_OP, GLS_RACP_OP_REP_NB_OF_STRD_RECS, GLS_RACP_OP_NB_OF_STRD_RECS_RSP, GLS_RACP_OP_RSP_CODE }
| Glucose Recoerd Access Control Point Operation Codes. More...
enum | gls_racp_operator_t { GLS_RACP_OPERATOR_NULL, GLS_RACP_OPERATOR_ALL_RECS, GLS_RACP_OPERATOR_LE_OR_EQ, GLS_RACP_OPERATOR_GT_OR_EQ, GLS_RACP_OPERATOR_WITHIN_RANGE_OF, GLS_RACP_OPERATOR_FIRST_REC, GLS_RACP_OPERATOR_LAST_REC }
| Glucose Recoerd Access Control Point Operator. More...
enum | gls_racp_operand_t { GLS_RACP_RSP_RESERVED, GLS_RACP_RSP_SUCCESS, GLS_RACP_RSP_OP_CODE_NOT_SUP, GLS_RACP_RSP_INVALID_OPERATOR, GLS_RACP_RSP_OPERATOR_NOT_SUP, GLS_RACP_RSP_INVALID_OPERAND, GLS_RACP_RSP_NO_RECS_FOUND, GLS_RACP_RSP_ABORT_UNSUCCESSFUL, GLS_RACP_RSP_PROCEDURE_NOT_COMPLETED, GLS_RACP_RSP_OPERAND_NOT_SUP, GLS_RACP_RSP_VALID_DECODE = 0xff }
| Glucose Recoerd Access Control Point Response codes. More...
enum | gls_racp_filter_type_t { GLS_RACP_FILTER_RESERVED, GLS_RACP_FILTER_SEQ_NUMBER, GLS_RACP_FILTER_USER_FACING_TIME }
| Glucose Recoerd Access Control Point filter types. More...

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

Glucose Service Record Access Control Point API.

Attention
  #####Copyright (c) 2019 GOODIX All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file gls_racp.h.