Date: April 2019. Version: 1.0.2. Can Library RX/TX, IDadress and data position. 3 independent timers for sending

Dependents:   CAN_Library_Example Ekran CAN-library

Committer:
renemagrit
Date:
Tue Aug 27 12:22:52 2019 +0000
Revision:
2:51f87c0c1c15
Parent:
0:9cbaaaf1768f
Child:
3:a142cf0e7c37
CAN library last tested version

Who changed what in which revision?

UserRevisionLine numberNew contents of line
renemagrit 0:9cbaaaf1768f 1 #ifndef _CAN_IDADRESS_H_
renemagrit 0:9cbaaaf1768f 2 #define _CAN_IDADRESS_H_
renemagrit 0:9cbaaaf1768f 3 /*
renemagrit 0:9cbaaaf1768f 4 * CANadreess.h sadrzi macro functions za svaki podatak:
renemagrit 0:9cbaaaf1768f 5 * - ID sa kojeg se cita
renemagrit 0:9cbaaaf1768f 6 * - poziciju u poruci
renemagrit 0:9cbaaaf1768f 7 *
renemagrit 0:9cbaaaf1768f 8 * Ovo se koristi pri funkciji: uint16_t get_data(char, char);
renemagrit 0:9cbaaaf1768f 9 * - prvi argument je ID sa kojeg se cita
renemagrit 0:9cbaaaf1768f 10 * - drugi argument je pozicija podatka u poruci
renemagrit 0:9cbaaaf1768f 11 * Jedna CAN poruka moze da procita 4 podatka velicine 2B i pozicija koja je u
renemagrit 0:9cbaaaf1768f 12 * opsegu od 0 do 3.
renemagrit 0:9cbaaaf1768f 13 *
renemagrit 0:9cbaaaf1768f 14 * Svaki novipodatak se "kaci" na CAN tako sto mu se upise ID i adresa ovde
renemagrit 0:9cbaaaf1768f 15 *
renemagrit 0:9cbaaaf1768f 16 */
renemagrit 0:9cbaaaf1768f 17
renemagrit 0:9cbaaaf1768f 18 //MACRO potpis: ID,POS
renemagrit 0:9cbaaaf1768f 19
renemagrit 0:9cbaaaf1768f 20 #define DTA1_RPM 0,0
renemagrit 0:9cbaaaf1768f 21 #define DTA1_TPS 0,1
renemagrit 0:9cbaaaf1768f 22 #define DTA1_WaterTemp 0,2
renemagrit 0:9cbaaaf1768f 23 #define DTA1_AirTemp 0,3
renemagrit 0:9cbaaaf1768f 24
renemagrit 0:9cbaaaf1768f 25 #define DTA2_MAP 1,0
renemagrit 0:9cbaaaf1768f 26 #define DTA2_Lambda 1,1
renemagrit 0:9cbaaaf1768f 27 #define DTA2_Speed 1,2
renemagrit 0:9cbaaaf1768f 28 #define DTA2_OilPres 1,3
renemagrit 0:9cbaaaf1768f 29
renemagrit 0:9cbaaaf1768f 30 #define DTA3_OilTemp 2,1
renemagrit 2:51f87c0c1c15 31 #define DTA3_Volts 2,2
renemagrit 0:9cbaaaf1768f 32
renemagrit 0:9cbaaaf1768f 33 #define DTA4_Gear 3,0
renemagrit 0:9cbaaaf1768f 34
renemagrit 0:9cbaaaf1768f 35 //#define DTA5_ 4,0
renemagrit 0:9cbaaaf1768f 36
renemagrit 0:9cbaaaf1768f 37 #define DTA6_Crank 5,2
renemagrit 0:9cbaaaf1768f 38
renemagrit 0:9cbaaaf1768f 39 #define LVDT_FRONT_FLLVDT0 4096,0
renemagrit 0:9cbaaaf1768f 40 #define LVDT_FRONT_FLLVDT1 4096,1
renemagrit 0:9cbaaaf1768f 41
renemagrit 0:9cbaaaf1768f 42 #define LVDT_REAR_RLLVDT0 4097,0
renemagrit 0:9cbaaaf1768f 43 #define LVDT_REAR_RLLVDT1 4097,1
renemagrit 0:9cbaaaf1768f 44
renemagrit 0:9cbaaaf1768f 45 #define BRAKES 4097,0
renemagrit 0:9cbaaaf1768f 46
renemagrit 0:9cbaaaf1768f 47 #endif