26 #define MAX_CMD_LENGHT 20 28 #define MAX_SUBSTR_LENGHT 10
uint16_t ee_addr
Definition: htv.h:55
void htv_free(struct htv_t *htv)
free the htv struct.
Definition: htv.c:62
char * substr
Definition: htv.h:53
uint8_t crc
Definition: htv.h:49
uint16_t address
Definition: htv.h:43
uint8_t crc8_str(const char *str)
return the crc8 of the string.
Definition: htv.c:73
uint8_t htv_check_cmd(struct htv_t *htv)
check the validity of the x10str command string.
Definition: htv.c:150
uint8_t pin
Definition: htv.h:45
char * x10str
Definition: htv.h:51
uint8_t cmd
Definition: htv.h:47
void htv_store_address(struct htv_t *htv)
store the address of the unit in EEPROM.
Definition: htv.c:38
struct htv_t * htv_init(struct htv_t *htv)
initialize the htv struct
Definition: htv.c:45