diff --git a/inc/can.h b/inc/can.h new file mode 100644 --- /dev/null +++ b/inc/can.h @@ -0,0 +1,21 @@ +#ifndef __CAN_H +#define __CAN_H + +#include +#include +#include "stm32f0xx_hal.h" + +#include "config.h" +#include "led.h" +#include "protocol.h" + +extern CAN_HandleTypeDef can_handle; + +void can_init(void); +void can_send_test(uint16_t id); +bool can_send(uint32_t id, uint32_t ide, uint8_t dlc, uint8_t data[8]); +void can_set_receive_mask(uint32_t mask); +void can_set_receive_id(uint32_t id); +bool can_silence_bus(bool value); + +#endif //__CAN_H