165 case UartOpcodeRx::UART_OPCODE_RX_HELLO:
166 case UartOpcodeRx::UART_OPCODE_RX_SESSION_NONCE:
167 case UartOpcodeRx::UART_OPCODE_RX_HEARTBEAT:
168 case UartOpcodeRx::UART_OPCODE_RX_STATUS:
169 case UartOpcodeRx::UART_OPCODE_RX_GET_MAC:
170 case UartOpcodeRx::UART_OPCODE_RX_HUB_DATA_REPLY:
173 if (opCode >= 50000) {
187 case UartOpcodeTx::UART_OPCODE_TX_HELLO:
188 case UartOpcodeTx::UART_OPCODE_TX_SESSION_NONCE:
189 case UartOpcodeTx::UART_OPCODE_TX_STATUS:
190 case UartOpcodeTx::UART_OPCODE_TX_MAC:
191 case UartOpcodeTx::UART_OPCODE_TX_ERR_REPLY_PARSING_FAILED:
192 case UartOpcodeTx::UART_OPCODE_TX_ERR_REPLY_STATUS:
193 case UartOpcodeTx::UART_OPCODE_TX_ERR_REPLY_SESSION_NONCE_MISSING:
194 case UartOpcodeTx::UART_OPCODE_TX_ERR_REPLY_DECRYPTION_FAILED:
195 case UartOpcodeTx::UART_OPCODE_TX_SESSION_NONCE_MISSING:
196 case UartOpcodeTx::UART_OPCODE_TX_BOOTED:
return false;
198 if (opCode >= 50000) {
UartOpcodeTx
Send messages over the UART to someone listening.
Definition: cs_UartOpcodes.h:59
@ UART_OPCODE_TX_ADC_CONFIG
Definition: cs_UartOpcodes.h:133
@ UART_OPCODE_TX_POWER_LOG_FILTERED_VOLTAGE
Definition: cs_UartOpcodes.h:139
@ UART_OPCODE_TX_LOG_ARRAY
Definition: cs_UartOpcodes.h:107
@ UART_OPCODE_TX_FACTORY_RESET
Definition: cs_UartOpcodes.h:83
@ UART_OPCODE_TX_MESH_TRACKED_DEVICE_REGISTER
Definition: cs_UartOpcodes.h:120
@ UART_OPCODE_TX_BOOTED
Definition: cs_UartOpcodes.h:84
@ UART_OPCODE_TX_ADVERTISEMENT_ENABLED
Definition: cs_UartOpcodes.h:129
@ UART_OPCODE_TX_NEIGHBOUR_RSSI
Definition: cs_UartOpcodes.h:101
@ UART_OPCODE_TX_HEARTBEAT
Definition: cs_UartOpcodes.h:62
@ UART_OPCODE_TX_PRESENCE_CHANGE
Definition: cs_UartOpcodes.h:81
@ UART_OPCODE_TX_POWER_LOG_POWER
Definition: cs_UartOpcodes.h:140
@ UART_OPCODE_TX_ERR_REPLY_PARSING_FAILED
Definition: cs_UartOpcodes.h:69
@ UART_OPCODE_TX_SERVICE_DATA
Definition: cs_UartOpcodes.h:78
@ UART_OPCODE_TX_SESSION_NONCE_MISSING
Definition: cs_UartOpcodes.h:77
@ UART_OPCODE_TX_MESH_SET_BEHAVIOUR_SETTINGS
Definition: cs_UartOpcodes.h:118
@ UART_OPCODE_TX_SESSION_NONCE
Definition: cs_UartOpcodes.h:61
@ UART_OPCODE_TX_BLE_MSG
Definition: cs_UartOpcodes.h:76
@ UART_OPCODE_TX_MESH_STATE_PART_0
Definition: cs_UartOpcodes.h:89
@ UART_OPCODE_TX_OWN_ID
Definition: cs_UartOpcodes.h:131
@ UART_OPCODE_TX_POWER_LOG_CURRENT
Definition: cs_UartOpcodes.h:136
@ UART_OPCODE_TX_ASSET_INFO_MAC
Definition: cs_UartOpcodes.h:98
@ UART_OPCODE_TX_ERR_REPLY_SESSION_NONCE_MISSING
Definition: cs_UartOpcodes.h:72
@ UART_OPCODE_TX_MESH_ACK_ALL_RESULT
Definition: cs_UartOpcodes.h:95
@ UART_OPCODE_TX_ADC_RESTART
Definition: cs_UartOpcodes.h:134
@ UART_OPCODE_TX_POWER_LOG_VOLTAGE
Definition: cs_UartOpcodes.h:137
@ UART_OPCODE_TX_MESH_CMD_TIME
Definition: cs_UartOpcodes.h:115
@ UART_OPCODE_TX_ASSET_INFO_ID
Definition: cs_UartOpcodes.h:102
@ UART_OPCODE_TX_ERR_REPLY_STATUS
Definition: cs_UartOpcodes.h:71
@ UART_OPCODE_TX_MICROAPP_DATA
Definition: cs_UartOpcodes.h:86
@ UART_OPCODE_TX_MESH_TRACKED_DEVICE_HEARTBEAT
Definition: cs_UartOpcodes.h:125
@ UART_OPCODE_TX_HUB_DATA_REPLY_ACK
Definition: cs_UartOpcodes.h:66
@ UART_OPCODE_TX_CONTROL_RESULT
Definition: cs_UartOpcodes.h:65
@ UART_OPCODE_TX_FIRMWARESTATE
Definition: cs_UartOpcodes.h:143
@ UART_OPCODE_TX_ERR_REPLY_DECRYPTION_FAILED
Definition: cs_UartOpcodes.h:73
@ UART_OPCODE_TX_POWER_LOG_FILTERED_CURRENT
Definition: cs_UartOpcodes.h:138
@ UART_OPCODE_TX_MESH_ENABLED
Definition: cs_UartOpcodes.h:130
@ UART_OPCODE_TX_MESH_STATE
Definition: cs_UartOpcodes.h:88
@ UART_OPCODE_TX_MESH_PROFILE_LOCATION
Definition: cs_UartOpcodes.h:116
@ UART_OPCODE_TX_EVT
Definition: cs_UartOpcodes.h:111
@ UART_OPCODE_TX_LOG
Definition: cs_UartOpcodes.h:105
@ UART_OPCODE_TX_RSSI_DATA_MESSAGE
Definition: cs_UartOpcodes.h:96
@ UART_OPCODE_TX_HUB_DATA
Definition: cs_UartOpcodes.h:85
@ UART_OPCODE_TX_MESH_SYNC_REQUEST
Definition: cs_UartOpcodes.h:124
@ UART_OPCODE_TX_MESH_TRACKED_DEVICE_TOKEN
Definition: cs_UartOpcodes.h:122
@ UART_OPCODE_TX_MESH_RESULT
Definition: cs_UartOpcodes.h:93
@ UART_OPCODE_TX_MESH_STATE_PART_1
Definition: cs_UartOpcodes.h:91
@ UART_OPCODE_TX_STATUS
Definition: cs_UartOpcodes.h:63
@ UART_OPCODE_TX_TEXT
Definition: cs_UartOpcodes.h:142
@ UART_OPCODE_TX_HELLO
Definition: cs_UartOpcodes.h:60
@ UART_OPCODE_TX_MAC
Definition: cs_UartOpcodes.h:64
UartOpcodeRx
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Jun 18,...
Definition: cs_UartOpcodes.h:15
@ UART_OPCODE_RX_ENABLE_MESH
Definition: cs_UartOpcodes.h:26
@ UART_OPCODE_RX_POWER_LOG_FILTERED_CURRENT
Definition: cs_UartOpcodes.h:45
@ UART_OPCODE_RX_ENABLE_ADVERTISEMENT
Definition: cs_UartOpcodes.h:25
@ UART_OPCODE_RX_POWER_LOG_VOLTAGE
Definition: cs_UartOpcodes.h:44
@ UART_OPCODE_RX_SESSION_NONCE
Definition: cs_UartOpcodes.h:17
@ UART_OPCODE_RX_ADC_CONFIG_INC_RANGE_CURRENT
Definition: cs_UartOpcodes.h:33
@ UART_OPCODE_RX_GET_ID
Definition: cs_UartOpcodes.h:27
@ UART_OPCODE_RX_POWER_LOG_POWER
Definition: cs_UartOpcodes.h:49
@ UART_OPCODE_RX_ADC_CONFIG_INC_RANGE_VOLTAGE
Definition: cs_UartOpcodes.h:35
@ UART_OPCODE_RX_ADC_CONFIG_DEC_RANGE_VOLTAGE
Definition: cs_UartOpcodes.h:36
@ UART_OPCODE_RX_ADC_CONFIG_DIFFERENTIAL_CURRENT
Definition: cs_UartOpcodes.h:37
@ UART_OPCODE_RX_ADC_CONFIG_VOLTAGE_PIN
Definition: cs_UartOpcodes.h:41
@ UART_OPCODE_RX_HUB_DATA_REPLY
Definition: cs_UartOpcodes.h:22
@ UART_OPCODE_RX_STATUS
Definition: cs_UartOpcodes.h:19
@ UART_OPCODE_RX_ADC_CONFIG_DEC_RANGE_CURRENT
Definition: cs_UartOpcodes.h:34
@ UART_OPCODE_RX_HELLO
Definition: cs_UartOpcodes.h:16
@ UART_OPCODE_RX_GET_MAC
Definition: cs_UartOpcodes.h:20
@ UART_OPCODE_RX_HEARTBEAT
Definition: cs_UartOpcodes.h:18
@ UART_OPCODE_RX_POWER_LOG_CURRENT
Definition: cs_UartOpcodes.h:43
@ UART_OPCODE_RX_CONTROL
Definition: cs_UartOpcodes.h:21
@ UART_OPCODE_RX_INJECT_EVENT
Definition: cs_UartOpcodes.h:51
@ UART_OPCODE_RX_ADC_CONFIG_DIFFERENTIAL_VOLTAGE
Definition: cs_UartOpcodes.h:39
Definition: cs_UartOpcodes.h:146
Encrypt
Option whether a UART message should be encrypted.
Definition: cs_UartOpcodes.h:151
@ ENCRYPT_IF_ENABLED
Definition: cs_UartOpcodes.h:153
@ ENCRYPT_OR_FAIL
Definition: cs_UartOpcodes.h:154
@ ENCRYPT_NEVER
Definition: cs_UartOpcodes.h:152
@ ENCRYPT_ACCORDING_TO_TYPE
Definition: cs_UartOpcodes.h:155
constexpr bool mustBeEncryptedTx(UartOpcodeTx opCode)
Whether a written UART message must be encrypted when "encryption required" is true (when a UART key ...
Definition: cs_UartOpcodes.h:185
constexpr bool mustBeEncryptedRx(UartOpcodeRx opCode)
Whether a received UART message must be encrypted when "encryption required" is true (when a UART key...
Definition: cs_UartOpcodes.h:163