Go to the documentation of this file.
53 #ifndef __GLS_RACP_H__
54 #define __GLS_RACP_H__
69 #define GLS_RACP_FILTER_SEQ_NUM_LEN 2
70 #define GLS_RACP_FILTER_USER_TIME_LEN 7
gls_racp_filter_t filter
Glucose Recoerd Access Control Point Operation Code.
@ GLS_RACP_FILTER_RESERVED
Reserved for future use.
@ GLS_RACP_RSP_NO_RECS_FOUND
Normal response if request to report stored records or request to delete stored records resulted in n...
@ GLS_RACP_RSP_RESERVED
Reserved for future use.
@ GLS_RACP_OP_NB_OF_STRD_RECS_RSP
Number of stored records response (Operator: Null 'value of 0x00 from Operator Table').
@ GLS_RACP_OPERATOR_FIRST_REC
First record(i.e.
gls_racp_op_code_t op_code
Glucose Recoerd Access Control Point Operation Code.
@ GLS_RACP_OPERATOR_NULL
NULL.
@ GLS_RACP_OPERATOR_ALL_RECS
All records.
@ GLS_RACP_OP_REP_NB_OF_STRD_RECS
Report number of stored records (Operator: Value from Operator Table).
@ GLS_RACP_OP_RSP_CODE
Response Code (Operator: Null 'value of 0x00 from Operator Table').
gls_racp_op_code_t op_code_req
Request Op Code.
gls_racp_operator_t racp_operator
Glucose Recoerd Access Control Point Operator.
@ GLS_RACP_FILTER_USER_FACING_TIME
Filter data using User Facing Time criteria.
@ GLS_RACP_OP_REP_STRD_RECS
Report stored records (Operator: Value from Operator Table).
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.
@ GLS_RACP_FILTER_SEQ_NUMBER
Filter data using Sequence Number criteria.
uint16_t min
Min sequence number.
gls_racp_operator_t racp_operator
Glucose Recoerd Access Control Point Operator.
@ GLS_RACP_OPERATOR_WITHIN_RANGE_OF
Within rang of (inclusive).
uint16_t num_of_record
Number of record (if op_code = GLS_RACP_OP_REP_NB_OF_STRD_RECS).
uint16_t gls_racp_rsp_encode(gls_racp_rsp_t *p_racp_rsp, uint8_t *p_encoded_buffer)
Encode record access control point response.
@ GLS_RACP_OPERATOR_GT_OR_EQ
Greater than or equal to.
gls_racp_operator_t
Glucose Recoerd Access Control Point Operator.
Glucose Recoerd Access Control Point request value.
prf_date_time_t max
Max base time.
@ GLS_RACP_OP_RESERVED
Reserved for future use.
Profile/Service Common Types.
@ GLS_RACP_RSP_OPERATOR_NOT_SUP
Normal response if unsupported Operator is received.
@ GLS_RACP_RSP_OP_CODE_NOT_SUP
Normal response if unsupported Op Code is received.
@ GLS_RACP_OPERATOR_LAST_REC
Last record (i.e.
uint16_t max
Max sequence number.
@ GLS_RACP_OPERATOR_LE_OR_EQ
Less than or equal to.
The date and time structure.
gls_racp_op_code_t
Glucose Recoerd Access Control Point Operation Codes.
gls_racp_operand_t
Glucose Recoerd Access Control Point Response codes.
prf_date_time_t min
Min base time.
@ GLS_RACP_RSP_VALID_DECODE
User-defined response if RACP request is valid for GLS.
@ GLS_RACP_RSP_SUCCESS
Normal response for successful operation.
@ GLS_RACP_OP_ABORT_OP
Abort operation (Operator: Null 'value of 0x00 from Operator Table').
@ GLS_RACP_RSP_OPERAND_NOT_SUP
Normal response if unsupported Operand is received.
@ GLS_RACP_RSP_ABORT_UNSUCCESSFUL
Normal response if request for Abort cannot be completed.
@ GLS_RACP_OP_DEL_STRD_RECS
Delete stored records (Operator: Value from Operator Table).
@ GLS_RACP_RSP_PROCEDURE_NOT_COMPLETED
Normal response if unable to complete a procedure for any reason.
Glucose Recoerd Access Control Point response value.
gls_racp_operand_t status
Command Status (if op_code = GLS_RACP_OP_RSP_CODE).
Glucose Recoerd Access Control Point filter value.
gls_racp_op_code_t op_code
Glucose Recoerd Access Control Point Operation Code.
gls_racp_filter_type_t
Glucose Recoerd Access Control Point filter types.
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.
@ GLS_RACP_RSP_INVALID_OPERATOR
Normal response if Operator received does not meet the requirements of the service (e....
@ GLS_RACP_RSP_INVALID_OPERAND
Normal response if Operand received does not meet the requirements of the service.
gls_racp_filter_type_t racp_filter_type
Glucose Recoerd Access Control Point filter types.