Protective Stop
Loading...
Searching...
No Matches
error.h
1// SPDX-FileCopyrightText: 2026 Polymath Robotics, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4#ifndef PSTOP_ERROR_H
5#define PSTOP_ERROR_H
6
8typedef enum {
9
10 PSTOP_OK = 0,
11 PSTOP_OPERATOR_NOT_ALLOWED = 1,
12 PSTOP_OUT_OF_OPERATOR_SPACE = 2,
13
14 PSTOP_MSG_LOST = 10,
15 PSTOP_MSG_REPETITION = 11,
16 PSTOP_MSG_DELAYED = 12,
17 PSTOP_MSG_OUT_OF_ORDER = 13,
18 PSTOP_MSG_INVALID_CHECKSUM = 14,
19 PSTOP_ERROR_INVALID_ID = 15,
20 PSTOP_NOT_BOND_MESSAGE = 16,
21 PSTOP_INVALID_BOND_REQUEST = 17,
22
23 PSTOP_HEARTBEAT_INVALID = 20,
24 PSTOP_MESSAGE_TYPE_INVALID = 21,
25 PSTOP_MISSED_HEARTBEATS = 22,
26
27 PSTOP_FATAL = 255
28
29} pstop_error_t;
30
31#endif /* PSTOP_ERROR_H */