aboutsummaryrefslogtreecommitdiff
path: root/include/can/global.h
blob: 5d88fe6dad0ce64d7985051aa458145d59048741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdint.h>

#ifndef _IOE_CAN_GLOBAL_
#define _IOE_CAN_GLOBAL_

typedef struct {
    uint16_t id;
    uint8_t length;
    uint8_t data[8];
} CanFrame;

typedef struct {
    CanFrame **buffer;
    void *udata;
} Can;


void can_send(Can *can, CanFrame *frame);

#endif /* _IOE_CAN_GLOBAL_ */