samsung-hvac
Version:
Samsung HVAC protocol library
25 lines (24 loc) • 1.62 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ByteConstants = void 0;
// define byte position constants
var ByteConstants;
(function (ByteConstants) {
ByteConstants[ByteConstants["PROTOCOL_START_POS"] = 0] = "PROTOCOL_START_POS";
ByteConstants[ByteConstants["PROTOCOL_SOURCE_POS"] = 1] = "PROTOCOL_SOURCE_POS";
ByteConstants[ByteConstants["PROTOCOL_DESTINATION_POS"] = 2] = "PROTOCOL_DESTINATION_POS";
ByteConstants[ByteConstants["PROTOCOL_COMMAND_POS"] = 3] = "PROTOCOL_COMMAND_POS";
ByteConstants[ByteConstants["PROTOCOL_DATA1_POS"] = 4] = "PROTOCOL_DATA1_POS";
ByteConstants[ByteConstants["PROTOCOL_DATA2_POS"] = 5] = "PROTOCOL_DATA2_POS";
ByteConstants[ByteConstants["PROTOCOL_DATA3_POS"] = 6] = "PROTOCOL_DATA3_POS";
ByteConstants[ByteConstants["PROTOCOL_DATA4_POS"] = 7] = "PROTOCOL_DATA4_POS";
ByteConstants[ByteConstants["PROTOCOL_DATA5_POS"] = 8] = "PROTOCOL_DATA5_POS";
ByteConstants[ByteConstants["PROTOCOL_DATA6_POS"] = 9] = "PROTOCOL_DATA6_POS";
ByteConstants[ByteConstants["PROTOCOL_DATA7_POS"] = 10] = "PROTOCOL_DATA7_POS";
ByteConstants[ByteConstants["PROTOCOL_DATA8_POS"] = 11] = "PROTOCOL_DATA8_POS";
ByteConstants[ByteConstants["PROTOCOL_CHECKSUM_POS"] = 12] = "PROTOCOL_CHECKSUM_POS";
ByteConstants[ByteConstants["PROTOCOL_END_POS"] = 13] = "PROTOCOL_END_POS";
ByteConstants["PROTOCOL_START"] = "b'2'";
ByteConstants["PROTOCOL_END"] = "b'4'";
ByteConstants[ByteConstants["PROTOCOL_LENGTH"] = 14] = "PROTOCOL_LENGTH";
})(ByteConstants = exports.ByteConstants || (exports.ByteConstants = {}));