nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches
ble_racp.h
1/*
2 * Copyright (c) 2012 - 2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
15#ifndef BLE_RACP_H__
16#define BLE_RACP_H__
17
18#include <stdint.h>
19#include <stdbool.h>
20#include <stddef.h>
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
43
63
71
95
101 enum racp_operator operator;
103 uint8_t operand_len;
105 uint8_t *operand;
106};
107
120uint32_t ble_racp_decode(const uint8_t *data, size_t data_len, struct ble_racp_value *racp_val);
121
133size_t ble_racp_encode(const struct ble_racp_value *racp_val, uint8_t *buf, size_t len);
134
135#ifdef __cplusplus
136}
137#endif
138
139#endif /* BLE_RACP_H__ */
140
racp_operand_filter_type
Record Access Control Point Operand Filter Type Value.
Definition ble_racp.h:65
@ RACP_OPERAND_FILTER_TYPE_FACING_TIME
Definition ble_racp.h:69
@ RACP_OPERAND_FILTER_TYPE_TIME_OFFSET
Definition ble_racp.h:67
racp_operator
Record Access Control Point operators.
Definition ble_racp.h:45
@ RACP_OPERATOR_ALL
Definition ble_racp.h:49
@ RACP_OPERATOR_NULL
Definition ble_racp.h:47
@ RACP_OPERATOR_LAST
Definition ble_racp.h:59
@ RACP_OPERATOR_RANGE
Definition ble_racp.h:55
@ RACP_OPERATOR_LESS_OR_EQUAL
Definition ble_racp.h:51
@ RACP_OPERATOR_GREATER_OR_EQUAL
Definition ble_racp.h:53
@ RACP_OPERATOR_RFU_START
Definition ble_racp.h:61
@ RACP_OPERATOR_FIRST
Definition ble_racp.h:57
size_t ble_racp_encode(const struct ble_racp_value *racp_val, uint8_t *buf, size_t len)
Encode a Record Access Control Point response.
uint32_t ble_racp_decode(const uint8_t *data, size_t data_len, struct ble_racp_value *racp_val)
Decode a Record Access Control Point write.
racp_response
Record Access Control Point response codes.
Definition ble_racp.h:73
@ RACP_RESPONSE_PROCEDURE_NOT_DONE
Definition ble_racp.h:91
@ RACP_RESPONSE_SUCCESS
Definition ble_racp.h:77
@ RACP_RESPONSE_OPCODE_UNSUPPORTED
Definition ble_racp.h:79
@ RACP_RESPONSE_OPERAND_UNSUPPORTED
Definition ble_racp.h:93
@ RACP_RESPONSE_INVALID_OPERAND
Definition ble_racp.h:85
@ RACP_RESPONSE_NO_RECORDS_FOUND
Definition ble_racp.h:87
@ RACP_RESPONSE_ABORT_FAILED
Definition ble_racp.h:89
@ RACP_RESPONSE_RESERVED
Definition ble_racp.h:75
@ RACP_RESPONSE_INVALID_OPERATOR
Definition ble_racp.h:81
@ RACP_RESPONSE_OPERATOR_UNSUPPORTED
Definition ble_racp.h:83
racp_opcode
Record Access Control Point opcodes.
Definition ble_racp.h:27
@ RACP_OPCODE_REPORT_RECS
Definition ble_racp.h:31
@ RACP_OPCODE_REPORT_NUM_RECS
Definition ble_racp.h:37
@ RACP_OPCODE_RESPONSE_CODE
Definition ble_racp.h:41
@ RACP_OPCODE_RESERVED
Definition ble_racp.h:29
@ RACP_OPCODE_NUM_RECS_RESPONSE
Definition ble_racp.h:39
@ RACP_OPCODE_ABORT_OPERATION
Definition ble_racp.h:35
@ RACP_OPCODE_DELETE_RECS
Definition ble_racp.h:33
uint8_t * operand
Definition ble_racp.h:105
uint8_t operand_len
Definition ble_racp.h:103
enum racp_opcode opcode
Definition ble_racp.h:99
Record Access Control Point value structure.
Definition ble_racp.h:97