2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file can_hw.h
|
|
|
|
*
|
|
|
|
* @date Dec 11, 2013
|
2015-12-31 13:02:30 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2016
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CAN_HW_H_
|
|
|
|
#define CAN_HW_H_
|
|
|
|
|
|
|
|
// CAN Bus ID for broadcast
|
|
|
|
/**
|
|
|
|
* e46 data is from http://forums.bimmerforums.com/forum/showthread.php?1887229
|
|
|
|
*
|
|
|
|
* Same for Mini Cooper? http://vehicle-reverse-engineering.wikia.com/wiki/MINI
|
|
|
|
*/
|
|
|
|
#define CAN_BMW_E46_SPEED 0x153
|
|
|
|
#define CAN_BMW_E46_RPM 0x316
|
|
|
|
#define CAN_BMW_E46_DME2 0x329
|
|
|
|
#define CAN_BMW_E46_CLUSTER_STATUS 0x613
|
|
|
|
#define CAN_BMW_E46_CLUSTER_STATUS_2 0x615
|
|
|
|
#define CAN_FIAT_MOTOR_INFO 0x561
|
|
|
|
#define CAN_MAZDA_RX_RPM_SPEED 0x201
|
|
|
|
#define CAN_MAZDA_RX_STATUS_1 0x212
|
|
|
|
#define CAN_MAZDA_RX_STATUS_2 0x420
|
|
|
|
#define CAN_VAG_RPM 0x280
|
|
|
|
#define CAN_VAG_CLT 0x289
|
|
|
|
|
|
|
|
void initCan(void);
|
2016-12-19 17:01:37 -08:00
|
|
|
void stopCanPins(DECLARE_ENGINE_PARAMETER_F);
|
|
|
|
void startCanPins(DECLARE_ENGINE_PARAMETER_F);
|
2015-07-10 06:01:56 -07:00
|
|
|
void commonTxInit(int eid);
|
|
|
|
void sendMessage();
|
|
|
|
void setTxBit(int offset, int index);
|
2016-01-24 12:02:46 -08:00
|
|
|
void enableFrankensoCan(DECLARE_ENGINE_PARAMETER_F);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
#endif /* CAN_HW_H_ */
|