summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ndef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ndef.h b/include/ndef.h
index d35dcfe..061877b 100644
--- a/include/ndef.h
+++ b/include/ndef.h
@@ -39,6 +39,13 @@ struct near_ndef_message {
#define NEAR_CARRIER_WIFI 0x02 /* bit 1 */
#define NEAR_CARRIER_UNKNOWN 0x80 /* Bit 7 */
+enum carrier_power_state {
+ CPS_INACTIVE = 0x00,
+ CPS_ACTIVE = 0x01,
+ CPS_ACTIVATING = 0x02,
+ CPS_UNKNOWN = 0x03,
+};
+
int near_ndef_count_records(uint8_t *ndef_in, size_t ndef_in_length,
uint8_t record_type);