ISOTP-C
A platform-agnostic ISOTP implementation in C.
isotp_user.h File Reference
#include <stdint.h>
Include dependency graph for isotp_user.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void isotp_user_debug (const char *message,...)
 user implemented, print debug message More...
 
int isotp_user_send_can (const uint32_t arbitration_id, const uint8_t *data, const uint8_t size)
 user implemented, send can message. should return ISOTP_RET_OK when success. More...
 
uint32_t isotp_user_get_us (void)
 user implemented, gets the amount of time passed since the last call in microseconds More...
 

Function Documentation

◆ isotp_user_debug()

void isotp_user_debug ( const char *  message,
  ... 
)

◆ isotp_user_get_us()

uint32_t isotp_user_get_us ( void  )

user implemented, gets the amount of time passed since the last call in microseconds

Referenced by isotp_on_can_message(), isotp_poll(), and isotp_send_with_id().

◆ isotp_user_send_can()

int isotp_user_send_can ( const uint32_t  arbitration_id,
const uint8_t *  data,
const uint8_t  size 
)

user implemented, send can message. should return ISOTP_RET_OK when success.

Returns
may return ISOTP_RET_NOSPACE if the CAN transfer should be retried later or ISOTP_RET_ERROR if transmission couldn't be completed

Referenced by isotp_send_consecutive_frame(), isotp_send_first_frame(), isotp_send_flow_control(), and isotp_send_single_frame().