* Vendor-defined request 0x00 sends struct bsb_stats in little endian.
*
* 0x01 = bulk endpoint
- * Used for sending frames to BSB. Accepts BSB frames. CRC will be calculated
- * automatically.
+ * Used for sending frames to BSB. Accepts BSB frames. Sender address and CRC
+ * will be recalculated.
*
* 0x82 = interrupt endpoint
* Used for receiving frames from BSB and status reports on sent frames.
* 16-bit CRC
*/
-enum bsb_address {
- BSB_ADDR_BOILER = 0,
- BSB_ADDR_EXT_BOARD = 3,
- BSB_ADDR_ROOM1 = 6,
- BSB_ADDR_ROOM2 = 7,
- BSB_ADDR_GATEWAY = 0x42,
- BSB_ADDR_BROADCAST = 0x7f,
-};
-
// Positions of fields in a frame
enum bsb_frame {
BF_SOF,
BF_OP,
};
+enum bsb_address {
+ BSB_ADDR_BOILER = 0,
+ BSB_ADDR_EXT_BOARD = 3,
+ BSB_ADDR_ROOM1 = 6,
+ BSB_ADDR_ROOM2 = 7,
+ BSB_ADDR_GATEWAY = 0x42, // That's us
+ BSB_ADDR_BROADCAST = 0x7f,
+};
+
enum bsb_op {
BSB_OP_REQUEST_INFO = 1,
BSB_OP_INFO = 2,