matlab_23550/Inu/Src2/main/can_protocol_ukss.h

64 lines
1.8 KiB
C

/*
* can_protocol_ukss.h
*
* Created on: 23 àâã. 2024 ã.
* Author: yura
*/
#ifndef SRC_MAIN_CAN_PROTOCOL_UKSS_H_
#define SRC_MAIN_CAN_PROTOCOL_UKSS_H_
#define CAN_PROTOCOL_UKSS 2 // 2
#ifndef CAN_PROTOCOL_UKSS
#define CAN_PROTOCOL_UKSS 1
#endif
#if (CAN_PROTOCOL_UKSS == 2)
#define ADR_CYCLES_TIMER_MAIN 96 //Ïåðèîä îñíîâí. ïîñûëîê CAN, * 10 mñåê
#define ADR_CYCLES_TIMER_ADD 97 //Ïåðèîä äîïîëí. ïîñûëîê CAN, * 10 mñåê
#define ADR_CYCLES_PAUSE_MAIN 98 //Ïàóçà îñíîâí. ïîñûëîê CAN, * 10 mñåê
#define ADR_CYCLES_PAUSE_ADD 99 //Ïàóçà äîïîëí. ïîñûëîê CAN, * 10 mñåê
#define ADR_CYCLES_REPEATE_MAIN 100 //Ïîâòîð îñíîâí. ïîñûëîê CAN, * 10 mñåê
#define ADR_CYCLES_REPEATE_ADD 101 //Ïîâòîð äîïîëí. ïîñûëîê CAN, * 10 mñåê
#define ADR_CYCLES_REPEATE_DIGIO 102 //Ïîâòîðÿòü ïîñûëêó äèñêð. âõîäîâ, ðàç
#define ADR_LIGHT_LED_1 104 //ßðêîñòü ëàìïû 1
#define ADR_LIGHT_LED_2 105 //ßðêîñòü ëàìïû 2
#define ADR_LIGHT_LED_3 106 //ßðêîñòü ëàìïû 3
#define ADR_LIGHT_LED_4 107 //ßðêîñòü ëàìïû 4
#define ADR_LIGHT_LED_5 108 //ßðêîñòü ëàìïû 5
#define ADR_LIGHT_LED_6 109 //ßðêîñòü ëàìïû 6
#define ADR_LIGHT_LED_7 110 //ßðêîñòü ëàìïû 7
#define ADR_COUNT_CYCLES_MAIN 120 //Êîëè÷åñòâî öèêëîâ îñíîâí. ïîñûëîê CAN
#define ADR_COUNT_CYCLES_ADD 121 //Êîëè÷åñòâî öèêëîâ äîïîëí. ïîñûëîê CAN
#define ADR_COUNT_FULL_CYCLES_MAIN 122 //Êîë-âî ïîëíûõ öèêëîâ îñíîâí. ïîñûëîê CAN
#define ADR_COUNT_FULL_CYCLES_ADD 123 //Êîë-âî ïîëíûõ öèêëîâ äîïîëí. ïîñûëîê CAN
#define ADR_PROTOCOL_VERSION 125 //Âåðñèÿ ïðîòîêîëà
#define ADR_UKSS_NUMBER 126 //Àäðåñ óñòðîéñòâà
#endif
#endif /* SRC_MAIN_CAN_PROTOCOL_UKSS_H_ */