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 mstime_t current_time();
52 void accept_SDO(void);
53 void process_PDO(void);
55 int take_cid(uchar* buf);
56 int take_len(uchar* buf);
57 int take_data(uchar* buf, int len);
59 char ul_save_sn(uint32_t usn);
60 char ul_save_adr(uint8_t uaddr);