Go to the documentation of this file.
53 #ifndef __CGMS_RACP_H__
54 #define __CGMS_RACP_H__
67 #define CGMS_RACP_FILTER_TIME_OFFSET_LEN 2
@ CGMS_RACP_RSP_SUCCESS
Normal response for successful operation.
@ CGMS_RACP_RSP_VALID_DECODE
User-defined response if RACP request is valid for CGMS.
@ CGMS_RACP_RSP_INVALID_OPERATOR
Normal response if Operator received does not meet the requirements of the service (e....
@ CGMS_RACP_FILTER_TIME_OFFSET
@ CGMS_RACP_OP_NB_OF_STRD_RECS_RSP
Number of stored records response (Operator: Null 'value of 0x00 from Operator Table').
cgms_racp_op_code_t op_code
Continuous Glucose Monitoring Recoerd Access Control Point Operation Code.
@ CGMS_RACP_OPERATOR_ALL_RECS
All records.
@ CGMS_RACP_RSP_PROCEDURE_NOT_COMPLETED
Normal response if unable to complete a procedure for any reason.
@ CGMS_RACP_OP_REP_NB_OF_STRD_RECS
Report number of stored records (Operator: Value from Operator Table).
@ CGMS_RACP_OP_DEL_STRD_RECS
Delete stored records (Operator: Value from Operator Table).
cgms_racp_filter_type_t
Continuous Glucose Monitoring Recoerd Access Control Point filter types.
@ CGMS_RACP_RSP_OPERAND_NOT_SUP
Normal response if unsupported Operand is received.
@ CGMS_RACP_RSP_ABORT_UNSUCCESSFUL
Normal response if request for Abort cannot be completed.
cgms_racp_operand_t
Continuous Glucose Monitoring Recoerd Access Control Point Response codes.
@ CGMS_RACP_RSP_INVALID_OPERAND
Normal response if Operand received does not meet the requirements of the service.
@ CGMS_RACP_OPERATOR_FIRST_REC
First record(i.e.
@ CGMS_RACP_OP_ABORT_OP
Abort operation (Operator: Null 'value of 0x00 from Operator Table').
@ CGMS_RACP_OPERATOR_WITHIN_RANGE_OF
Within rang of (inclusive).
@ CGMS_RACP_RSP_OPERATOR_NOT_SUP
Normal response if unsupported Operator is received.
@ CGMS_RACP_OPERATOR_NULL
NULL.
Continuous Glucose Monitoring Recoerd Access Control Point request value.
@ CGMS_RACP_OPERATOR_GT_OR_EQ
Greater than or equal to.
uint16_t num_of_record
Number of record (if op_code = CGMS_RACP_OP_REP_NB_OF_STRD_RECS).
@ CGMS_RACP_FILTER_RESERVED
Reserved for future use.
cgms_racp_op_code_t
Continuous Glucose Monitoring Recoerd Access Control Point Operation Codes.
@ CGMS_RACP_RSP_NO_RECS_FOUND
Normal response if request to report stored records or request to delete stored records resulted in n...
cgms_racp_filter_type_t filter_type
Continuous Glucose Monitoring Recoerd Access Control Point filter types.
@ CGMS_RACP_RSP_RESERVED
Reserved for future use.
@ CGMS_RACP_OP_RESERVED
Reserved for future use.
cgms_racp_operand_t cgms_racp_req_decode(const uint8_t *p_data, uint16_t length, cgms_racp_req_t *p_racp_req)
Decode record access control point request.
cgms_racp_operator_t
Continuous Glucose Monitoring Recoerd Access Control Point Operator.
uint16_t cgms_racp_rsp_encode(cgms_racp_rsp_t *p_racp_rsp, uint8_t *p_encoded_buffer)
Encode record access control point response.
@ CGMS_RACP_OP_RSP_CODE
Response Code (Operator: Null 'value of 0x00 from Operator Table').
@ CGMS_RACP_RSP_OP_CODE_NOT_SUP
Normal response if unsupported Op Code is received.
@ CGMS_RACP_OPERATOR_LAST_REC
Last record (i.e.
Continuous Glucose Monitoring Recoerd Access Control Point response value.
@ CGMS_RACP_OP_REP_STRD_RECS
Report stored records (Operator: Value from Operator Table).
cgms_racp_op_code_t op_code
Continuous Glucose Monitoring Recoerd Access Control Point Operation Code.
@ CGMS_RACP_OPERATOR_LE_OR_EQ
Less than or equal to.
cgms_racp_operand_t status
Command Status (if op_code = CGMS_RACP_OP_RSP_CODE).