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.

34 lines
502 B
C

#ifndef __HBW_H__
#define __HBW_H__
#define BAUDRATE 19200L
uint8_t my_address[4];
uint8_t rind;
uint16_t rcrc;
uint8_t rmessage[62];
uint8_t raddress[4];
uint8_t rdest[4];
uint8_t rlen;
uint8_t resc;
uint8_t rctl;
uint8_t rwant;
volatile uint8_t rready;
volatile uint8_t rlast;
uint8_t sind;
uint8_t sdisc;
uint8_t sctl;
uint16_t scrc;
uint8_t slen;
uint8_t sesc;
uint8_t saddress[4];
uint8_t smessage[62];
void hbw_loop(void);
char sendmsg(void);
char senddsc(void);
void init_hbw(void);
#endif