update to support ena-eke-proxy

This commit is contained in:
Lurkars
2020-12-06 12:46:36 +01:00
parent 8b38bde332
commit 9d0703aa62
28 changed files with 656 additions and 4771 deletions
+14
View File
@@ -239,6 +239,20 @@ ena_exposure_config_t *ena_exposure_default_config(void);
*/
void ena_exposure_check(ena_beacon_t beacon, ena_temporary_exposure_key_t temporary_exposure_key);
/**
* @brief find minimal key index of beacons for a certain timestamp
*
* @param[in] timestamp the timestamp to check against
*/
int ena_expore_check_find_min(uint32_t timestamp);
/**
* @brief find maximum key index of beacons for a certain timestamp
*
* @param[in] timestamp the timestamp to check against
*/
int ena_expore_check_find_max(uint32_t timestamp);
/**
* @brief reads Temporary Exposue Key and check for exposures with all beacons
*
+1 -1
View File
@@ -59,7 +59,7 @@ typedef struct __attribute__((__packed__))
uint32_t day; // Day of the exposure, using UTC, encapsulated as the time of the beginning of that day.
int typical_attenuation; // Aggregation of the attenuations of all of a given diagnosis key's beacons received during the scan, in dB.
int min_attenuation; // Minimum attenuation of all of a given diagnosis key's beacons received during the scan, in dB.
int duration_minutes; //The duration of the exposure in minutes.
int duration_minutes; // The duration of the exposure in minutes.
int report_type; // Type of diagnosis associated with a key.
} ena_exposure_information_t;