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
216 B
12 lines
216 B
#pragma once
|
|
#include <stdint.h>
|
|
typedef struct {
|
|
uint8_t mac[6];
|
|
} mac_t;
|
|
|
|
typedef struct {
|
|
uint8_t id[12]; // 96bit
|
|
} cpu_id_t;
|
|
|
|
void xs_id_generate_random_mac(mac_t* id);
|
|
void xs_id_get_cpu_id(cpu_id_t* id);
|