unique_id.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef _PICO_UNIQUE_ID_H
8#define _PICO_UNIQUE_ID_H
9
10#include "pico.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
36#define PICO_UNIQUE_BOARD_ID_SIZE_BYTES 8
37
46typedef struct {
47 uint8_t id[PICO_UNIQUE_BOARD_ID_SIZE_BYTES];
49
61
74void pico_get_unique_board_id_string(char *id_out, uint len);
75
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif
void pico_get_unique_board_id_string(char *id_out, uint len)
Get unique ID in string format.
Definition: unique_id.c:44
void pico_get_unique_board_id(pico_unique_board_id_t *id_out)
Get unique ID.
Definition: unique_id.c:40
Unique board identifier.
Definition: unique_id.h:46