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
12typedef struct {
13#if PSTOP_VERSION == 0x02
15 uint32_t data;
16#else
17# error "Unsupported PSTOP_VERSION"
18#endif
20
26void device_id_init(device_id_t *device_id);
27
34void device_id_copy(device_id_t *device_id, const device_id_t *id);
35
44int device_id_cmp(const device_id_t *lhs, const device_id_t *rhs);
45
46#if PSTOP_VERSION == 0x02
47
54void device_id_set(device_id_t *device_id, uint32_t id);
55#endif
56
57#endif /* PSTOP_DEVICE_ID_H */
Identifier of a pstop device.
Definition device_id.h:12
uint32_t data
IPv4 address.
Definition device_id.h:15