Loading...
Searching...
No Matches
can.h
1
8
9#ifndef _CAN_H
10#define _CAN_H
11
12#include "stdint.h"
13#include "stm32f439xx.h"
14
15#include "params.h"
16
22
24 unsigned int dataL; // data high register
25 unsigned int dataH; // data low register
26 unsigned int address; // CAN identifer
27 uint8_t CAN_number; // either CAN2 or CAN1
28};
29
30void CANGPIO_config();
31void CAN_Peripheral_config();
32uint8_t find_empty_CAN_TX_mailbox(uint8_t);
33uint8_t CAN_TX(uint8_t, uint8_t, unsigned int, unsigned int, unsigned int);
34uint8_t CAN_RX(struct CAN_RX_data *);
35
36#endif