-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathisotp_user.h
36 lines (28 loc) · 869 Bytes
/
isotp_user.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __ISOTP_USER_H__
#define __ISOTP_USER_H__
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/** @brief user implemented, print debug message */
void isotp_user_debug(const char* message, ...);
/**
* @brief user implemented, send can message. should return ISOTP_RET_OK when success.
*
* @return may return ISOTP_RET_NOSPACE if the CAN transfer should be retried later
* or ISOTP_RET_ERROR if transmission couldn't be completed
*/
int isotp_user_send_can(const uint32_t arbitration_id,
const uint8_t* data, const uint8_t size
#if ISO_TP_USER_SEND_CAN_ARG
,void *arg
#endif
);
/**
* @brief user implemented, gets the amount of time passed since the last call in microseconds
*/
uint32_t isotp_user_get_us(void);
#ifdef __cplusplus
}
#endif
#endif // __ISOTP_H__