7 #include "hydroponie.h"
11 #define ULDY_TMBUF_LEN 5
13 #define HEART_BUF_LEN 9
14 #define HEART_CID 1023
16 #define UL_DEV "/dev/ulan"
26 uloi_coninfo_t uloi_coninfo_global;
27 ul_dyac_t ul_dyac_global;
29 #ifndef UL_WITHOUT_HANDLE
30 extern uloi_coninfo_t *coninfo;
31 extern ul_dyac_t *ul_dyac;
35 typedef unsigned long mstime_t;
37 typedef lt_mstime_t mstime_t;
40 mstime_t led1_time, led2_time, l3time;
42 void long2buf(uchar *buf,unsigned long mod);
43 void int2buf(uchar *buf,int mod);
44 int buf2int(uchar *buf);
46 uint buf2uint(uchar *buf);
48 mstime_t current_time();
54 void accept_SDO(void);
55 void process_PDO(void);
57 uint take_cid(uchar* buf);
58 int take_len(uchar* buf);
59 int take_data(uchar* buf, int len);
61 char ul_save_sn(uint32_t usn);
62 char ul_save_adr(uint8_t uaddr);