Files @ eaddb578c329
Branch filter:

Location: HydroBot/hydrobot-sharedlibs/inc/can.h - annotation

matthewreed
Fixed bugs in protocol receive and changed can receive led
#ifndef _CAN_H_
#define _CAN_H_

#include <stdbool.h>
#include <string.h>
#include "stm32f0xx_hal.h"

#include "config.h"
#include "led.h"
#include "protocol.h"

extern CAN_HandleTypeDef can_handle;

void can_init(uint32_t rx_id, uint32_t broadcast_id);
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_