7 #include "hydroponie.h"
11 #define ULDY_TMBUF_LEN 5
13 #define HEART_BUF_LEN 9
14 #define HEART_CID 1023
15 #define HEART_PERIOD 2
17 #define UL_DEV "/dev/ulan"
27 uloi_coninfo_t uloi_coninfo_global;
28 ul_dyac_t ul_dyac_global;
30 #ifndef UL_WITHOUT_HANDLE
31 extern uloi_coninfo_t *coninfo;
32 extern ul_dyac_t *ul_dyac;
36 typedef unsigned long mstime_t;
38 typedef lt_mstime_t mstime_t;
41 mstime_t led1_time, led2_time, l3time;
43 void long2buf(uchar *buf,unsigned long mod);
44 void int2buf(uchar *buf,int mod);
45 int buf2int(uchar *buf);
47 uint buf2uint(uchar *buf);
49 mstime_t current_time();
55 void accept_SDO(void);
56 void process_PDO(void);
58 uint take_cid(uchar* buf);
59 int take_len(uchar* buf);
60 int take_data(uchar* buf, int len);
62 char ul_save_sn(uint32_t usn);
63 char ul_save_adr(uint8_t uaddr);