ether2ser 0.1.0
Ethernet <-> synchronous V.24 bridge firmware for RP2040 + W5500
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1/*
2 * ether2ser - Ethernet <-> synchronous V.24 (RS-232/V.28) bridge
3 *
4 * File: src/system/error.h
5 * Purpose: Common error codes for ether2ser.
6 *
7 * SPDX-License-Identifier: Apache-2.0
8 *
9 * Copyright (c) 2026 Florian <f.leuze@outlook.de>
10 */
11
12#ifndef ERROR_H
13#define ERROR_H
14
15// Related headers
16
17// Standard library headers
18
19// Project Headers
20
21// Generated headers
22
79
84void fatal_panic(e2s_error_t reason);
85
86#endif /* ERROR_H */
e2s_error_t
Common error codes returned by ether2ser modules.
Definition error.h:27
@ E2S_ERR_HDLC_ACC_FRAME_READY
Definition error.h:67
@ E2S_ERR_CLI_UNKNOWN_COMMAND
Definition error.h:33
@ E2S_ERR_HDLC_ENCODE_FRAME_TOO_SMALL
Definition error.h:55
@ E2S_ERR_CLI_EMPTY_LINE
Definition error.h:32
@ E2S_ERR_W5500_RECV_FAILED
Definition error.h:73
@ E2S_ERR_HDLC_DECODE_INVALID_ARGS
Definition error.h:60
@ E2S_ERR_W5500_INIT_FAILED
Definition error.h:70
@ E2S_ERR_PIO_TX_FULL
Definition error.h:49
@ E2S_ERR_HDLC_ENCODE_FRAME_NOT_EMPTY
Definition error.h:56
@ E2S_ERR_CLI_UNKNOWN_PIN
Definition error.h:37
@ E2S_ERR_W5500_SOCKET_OPEN_FAILED
Definition error.h:71
@ E2S_ERR_HDLC_DECODE_PAYLOAD_TOO_SHORT
Definition error.h:63
@ E2S_ERR_GENERIC_ERROR
Definition error.h:29
@ E2S_ERR_HDLC_ENCODE_INVALID_ARGS
Definition error.h:54
@ E2S_ERR_HDLC_DECODE_CRC_MISMATCH
Definition error.h:64
@ E2S_ERR_CLI_LINE_FORMAT
Definition error.h:39
@ E2S_OK
Definition error.h:28
@ E2S_ERR_EVENT_QUEUE_FULL
Definition error.h:43
@ E2S_ERR_TX_QUEUE_FULL
Definition error.h:76
@ E2S_ERR_EVENT_QUEUE_EMPTY
Definition error.h:44
@ E2S_ERR_CLI_USAGE_SET
Definition error.h:34
@ E2S_V24_RUNTIME_NOT_INITIALIZED
Definition error.h:50
@ E2S_ERR_HDLC_ENCODE_FAILED
Definition error.h:53
@ E2S_ERR_PIO_UNAVAILABLE
Definition error.h:47
@ E2S_ERR_HDLC_DECODE_PAYLOAD_TOO_LONG
Definition error.h:62
@ E2S_ERR_HDLC_DECODE_INVALID_FRAME
Definition error.h:61
@ E2S_ERR_CLI_LINE_TRUNCATED
Definition error.h:40
@ E2S_ERR_TX_QUEUE_NOT_INITIALIZED
Definition error.h:77
@ E2S_ERR_CLI_PIN_INPUT_ONLY
Definition error.h:38
@ E2S_ERR_CLI_USAGE_PININFO
Definition error.h:36
@ E2S_ERR_PIO_RX_EMPTY
Definition error.h:48
@ E2S_ERR_HDLC_ENCODE_OVERFLOW
Definition error.h:57
@ E2S_ERR_CLI_USAGE_GET
Definition error.h:35
@ E2S_ERR_W5500_SEND_FAILED
Definition error.h:72
void fatal_panic(e2s_error_t reason)
Print error message and panic.
Definition error.c:30