Protective Stop
Loading...
Searching...
No Matches
device_id.h
1
// SPDX-FileCopyrightText: 2026 Polymath Robotics, Inc.
2
// SPDX-License-Identifier: Apache-2.0
3
4
#ifndef PSTOP_DEVICE_ID_H
5
#define PSTOP_DEVICE_ID_H
6
7
#include <stdint.h>
8
9
#include "pstop/config.h"
10
12
typedef
struct
{
13
#if PSTOP_VERSION == 0x02
15
uint32_t
data
;
16
#else
17
# error "Unsupported PSTOP_VERSION"
18
#endif
19
}
device_id_t
;
20
26
void
device_id_init(
device_id_t
*device_id);
27
34
void
device_id_copy(
device_id_t
*device_id,
const
device_id_t
*
id
);
35
44
int
device_id_cmp(
const
device_id_t
*lhs,
const
device_id_t
*rhs);
45
46
#if PSTOP_VERSION == 0x02
47
54
void
device_id_set(
device_id_t
*device_id, uint32_t
id
);
55
#endif
56
57
#endif
/* PSTOP_DEVICE_ID_H */
device_id_t
Identifier of a pstop device.
Definition
device_id.h:12
device_id_t::data
uint32_t data
IPv4 address.
Definition
device_id.h:15
pstop
device_id.h
Generated by
1.15.0