2020-06-08 11:15:05 +02:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2020 Olaf Landsiedel
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef COVID_TYPES_H
|
|
|
|
#define COVID_TYPES_H
|
|
|
|
|
2021-12-10 13:51:56 +01:00
|
|
|
#include <exposure-notification.h>
|
2021-04-25 21:59:12 +02:00
|
|
|
#include <zephyr.h>
|
2020-06-08 11:15:05 +02:00
|
|
|
#include <zephyr/types.h>
|
|
|
|
|
|
|
|
#define COVID_ROLLING_PROXIMITY_IDENTIFIER_LEN 16
|
|
|
|
|
2021-12-10 13:51:56 +01:00
|
|
|
typedef ENIntervalIdentifier rolling_proximity_identifier_t;
|
2020-06-08 11:15:05 +02:00
|
|
|
|
|
|
|
typedef struct bt_metadata {
|
2021-12-10 13:51:56 +01:00
|
|
|
uint8_t version;
|
|
|
|
uint8_t tx_power;
|
|
|
|
uint8_t rsv1;
|
|
|
|
uint8_t rsv2;
|
|
|
|
} __packed bt_metadata_t;
|
2020-06-08 11:15:05 +02:00
|
|
|
|
2021-12-10 13:51:56 +01:00
|
|
|
// typedef struct bt_metadata bt_metadata_t;
|
2020-06-08 11:15:05 +02:00
|
|
|
|
2021-12-10 13:51:56 +01:00
|
|
|
typedef struct associated_encrypted_metadata {
|
|
|
|
uint8_t data[sizeof(bt_metadata_t)];
|
2020-06-08 11:15:05 +02:00
|
|
|
} __packed associated_encrypted_metadata_t;
|
|
|
|
|
2021-03-17 14:49:07 +01:00
|
|
|
typedef uint8_t rssi_t;
|
|
|
|
|
2020-06-08 11:15:05 +02:00
|
|
|
#endif
|