functional LED code, first untested implementation
This commit is contained in:
34
Software/Core/Inc/can.h
Normal file
34
Software/Core/Inc/can.h
Normal file
@ -0,0 +1,34 @@
|
||||
#ifndef __CAN_H
|
||||
#define __CAN_H
|
||||
|
||||
#include "scs_sdc.h"
|
||||
|
||||
#define CAN_ID_SLAVE_PANIC 0x009
|
||||
#define CAN_ID_AMS_STATUS 0x00A
|
||||
#define CAN_ID_AMS_IN 0x00B
|
||||
#define CAN_ID_AMS_ERROR 0x00C
|
||||
#define CAN_ID_SLAVE_STATUS_BASE 0x080
|
||||
#define CAN_ID_AMS_SIGNALS 0x090
|
||||
#define CAN_ID_DCDC_INFO 0x313
|
||||
|
||||
// TEMPORARY!!
|
||||
#define CAN_ID_AMS_DETAILS 0x091
|
||||
#define CAN_ID_AMS_DETAILS_FC 0x092
|
||||
|
||||
#define CAN_ID_SLAVE_LOG 0x4F4
|
||||
#define CAN_ID_SHUNT_BASE 0x520
|
||||
#define CAN_ID_SHUNT_CURRENT 0x521
|
||||
#define CAN_ID_SHUNT_VOLTAGE1 0x522
|
||||
#define CAN_ID_SHUNT_VOLTAGE2 0x523
|
||||
#define CAN_ID_SHUNT_VOLTAGE3 0x524
|
||||
#define CAN_ID_SHUNT_TEMP 0x525
|
||||
#define CAN_ID_SHUNT_POWER 0x526
|
||||
#define CAN_ID_SHUNT_CURRENT_COUNTER 0x527
|
||||
#define CAN_ID_SHUNT_ENERGY_COUNTER 0x528
|
||||
|
||||
void ftcan_msg_received_cb(uint16_t id, size_t datalen, const uint8_t *data);
|
||||
|
||||
HAL_StatusTypeDef can_init(FDCAN_HandleTypeDef* handle);
|
||||
HAL_StatusTypeDef can_change_ts_state(TSState state);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user