Wirepas SDK
lock_bits.h
Go to the documentation of this file.
1 /* Copyright 2017 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
12 #ifndef LOCK_BITS_H_
13 #define LOCK_BITS_H_
14 
15 #include <stdint.h>
16 #include <stdbool.h>
17 
25 typedef enum
26 {
28  LOCK_BITS_DSAP_DATA_TX = 0x00000001,
61  LOCK_BITS_OTAP = 0x80000000,
62 } lock_bits_e;
63 
68 bool LockBits_isKeySet(void);
69 
76 bool LockBits_isFeaturePermitted(uint32_t lock_bits);
77 
78 #endif /* LOCK_BITS_H_ */
LOCK_BITS_MSAP_GET_NBORS
@ LOCK_BITS_MSAP_GET_NBORS
Definition: lock_bits.h:52
LOCK_BITS_OTAP
@ LOCK_BITS_OTAP
Definition: lock_bits.h:61
LOCK_BITS_MSAP_SINK_COST_READ
@ LOCK_BITS_MSAP_SINK_COST_READ
Definition: lock_bits.h:57
LOCK_BITS_CSAP_FACTORY_RESET
@ LOCK_BITS_CSAP_FACTORY_RESET
Definition: lock_bits.h:46
LOCK_BITS_CSAP_ATTR_READ
@ LOCK_BITS_CSAP_ATTR_READ
Definition: lock_bits.h:44
LOCK_BITS_MSAP_SINK_COST_WRITE
@ LOCK_BITS_MSAP_SINK_COST_WRITE
Definition: lock_bits.h:55
LOCK_BITS_MSAP_ATTR_READ
@ LOCK_BITS_MSAP_ATTR_READ
Definition: lock_bits.h:40
LOCK_BITS_MSAP_APP_CONFIG_WRITE
@ LOCK_BITS_MSAP_APP_CONFIG_WRITE
Definition: lock_bits.h:34
LOCK_BITS_MSAP_SCRATCHPAD_STATUS
@ LOCK_BITS_MSAP_SCRATCHPAD_STATUS
Definition: lock_bits.h:50
LOCK_BITS_MSAP_ATTR_WRITE
@ LOCK_BITS_MSAP_ATTR_WRITE
Definition: lock_bits.h:38
LockBits_isKeySet
bool LockBits_isKeySet(void)
Check if a feature lock key is set.
lock_bits_e
lock_bits_e
Feature lock bits.
Definition: lock_bits.h:25
LOCK_BITS_MSAP_SCAN_NBORS
@ LOCK_BITS_MSAP_SCAN_NBORS
Definition: lock_bits.h:53
LockBits_isFeaturePermitted
bool LockBits_isFeaturePermitted(uint32_t lock_bits)
Check if a feature is permitted.
LOCK_BITS_MSAP_STACK_START
@ LOCK_BITS_MSAP_STACK_START
Definition: lock_bits.h:30
LOCK_BITS_DSAP_DATA_TX
@ LOCK_BITS_DSAP_DATA_TX
Definition: lock_bits.h:28
LOCK_BITS_CSAP_ATTR_WRITE
@ LOCK_BITS_CSAP_ATTR_WRITE
Definition: lock_bits.h:42
LOCK_BITS_MSAP_STACK_STOP
@ LOCK_BITS_MSAP_STACK_STOP
Definition: lock_bits.h:32
LOCK_BITS_MSAP_SCRATCHPAD_START
@ LOCK_BITS_MSAP_SCRATCHPAD_START
Definition: lock_bits.h:48
LOCK_BITS_REMOTE_API_TX
@ LOCK_BITS_REMOTE_API_TX
Definition: lock_bits.h:59
LOCK_BITS_MSAP_APP_CONFIG_READ
@ LOCK_BITS_MSAP_APP_CONFIG_READ
Definition: lock_bits.h:36