2 * Boiler System Bus Gateway -- Interface Definitions
4 * (c) 2020 Martin Mareš <mj@ucw.cz>
7 #define BSB_USB_VENDOR 0x4242
8 #define BSB_USB_PRODUCT 0x0003
9 #define BSB_USB_VERSION 0x0100
11 // Status sent on the interrupt endpoint
19 TX_RESULT_TOO_MANY_RETRIES,
22 // Sent via USB in little-endian format
39 * Structure of BSB frames
41 * start of frame (0xdc)
42 * source address XOR 0x80
46 * <parameters depending on operation>
52 BSB_ADDR_EXT_BOARD = 3,
55 BSB_ADDR_GATEWAY = 0x42,
56 BSB_ADDR_BROADCAST = 0x7f,
60 BSB_OP_REQUEST_INFO = 1,
68 BSB_OP_QUERY_DEFAULT = 0x0f,
69 BSB_OP_ANSWER_DEFAULT = 0x10,