29 lines
547 B
C
29 lines
547 B
C
#ifndef __MODUL_H__
|
|
#define __MODUL_H__
|
|
struct env_char{
|
|
//char smog;
|
|
char led_one;
|
|
char led_two;
|
|
char fan;
|
|
//char buzz;
|
|
char h_tem;
|
|
char l_tem;
|
|
char h_hum;
|
|
char l_hum;
|
|
char first_light;
|
|
char second_light;
|
|
char third_light;
|
|
char forth_light;
|
|
};
|
|
extern struct env_char env_char_data;
|
|
int zigbee_init( char *devpath, int baudrate);
|
|
int zigbee_get_dat(int fd);
|
|
int zigbee_exe_cmd(int fd, unsigned char *p);
|
|
int zigbee_exit(int fd);
|
|
void send_cmd_m0(int signo);
|
|
//void send_alarm_m0(int signo);
|
|
|
|
|
|
|
|
#endif
|