isotp-c
Platform-independent ISO 15765-2 transport for embedded C
Loading...
Searching...
No Matches
Return values

Status values returned by the transport API and platform send shim. More...

Macros

#define ISOTP_RET_OK   0
#define ISOTP_RET_ERROR   -1
#define ISOTP_RET_INPROGRESS   -2
#define ISOTP_RET_OVERFLOW   -3
#define ISOTP_RET_WRONG_SN   -4
#define ISOTP_RET_NO_DATA   -5
#define ISOTP_RET_TIMEOUT   -6
#define ISOTP_RET_LENGTH   -7
#define ISOTP_RET_NOSPACE   -8

Detailed Description

Status values returned by the transport API and platform send shim.

Macro Definition Documentation

◆ ISOTP_RET_ERROR

#define ISOTP_RET_ERROR   -1

Invalid argument, incompatible receive mode, or permanent driver failure.

Definition at line 92 of file isotp_defines.h.

◆ ISOTP_RET_INPROGRESS

#define ISOTP_RET_INPROGRESS   -2

A segmented transmission is already active.

Definition at line 94 of file isotp_defines.h.

◆ ISOTP_RET_LENGTH

#define ISOTP_RET_LENGTH   -7

A CAN frame or declared ISO-TP payload length is invalid.

Definition at line 104 of file isotp_defines.h.

◆ ISOTP_RET_NO_DATA

#define ISOTP_RET_NO_DATA   -5

No completed message or streaming chunk is available.

Definition at line 100 of file isotp_defines.h.

◆ ISOTP_RET_NOSPACE

#define ISOTP_RET_NOSPACE   -8

Temporary CAN-driver backpressure, or a streaming destination that is too small.

Definition at line 106 of file isotp_defines.h.

◆ ISOTP_RET_OK

#define ISOTP_RET_OK   0

Operation succeeded or a frame was accepted by the CAN driver.

Examples
isotp_example_polling.c, and isotp_example_streaming.c.

Definition at line 90 of file isotp_defines.h.

◆ ISOTP_RET_OVERFLOW

#define ISOTP_RET_OVERFLOW   -3

A payload exceeds the configured link buffer.

Definition at line 96 of file isotp_defines.h.

◆ ISOTP_RET_TIMEOUT

#define ISOTP_RET_TIMEOUT   -6

A protocol response was not received before its deadline.

Definition at line 102 of file isotp_defines.h.

◆ ISOTP_RET_WRONG_SN

#define ISOTP_RET_WRONG_SN   -4

A Consecutive Frame used an unexpected sequence number.

Definition at line 98 of file isotp_defines.h.