You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
220 B

2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. typedef struct {
  4. uint8_t mac[6];
  5. } mac_t;
  6. typedef struct {
  7. uint8_t id[12]; // 96bit
  8. } device_id_t;
  9. void xs_id_generate_random_mac(mac_t* id);
  10. void xs_id_get_uuid(device_id_t* id);