You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
469 B
C

#ifndef __HBW_H__
#define __HBW_H__
#define BAUDRATE 19200L
uint8_t hbw_rmessage[62];
uint8_t hbw_rlen;
uint8_t hbw_slen;
uint8_t hbw_smessage[62];
volatile uint16_t hbw_timer;
void hbw_loop(void);
uint8_t hbw_send_channel(uint8_t channel, uint8_t length, uint8_t const * const data, uint32_t target_address);
void hbw_init(void);
uint8_t hbw_get_channel(uint8_t channel, uint8_t data[]);
void hbw_set_channel(uint8_t channel, uint8_t len, uint8_t data[]);
#endif