summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/convwall
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/bin/convwall')
0 files changed, 0 insertions, 0 deletions
assert(o); assert(dlc <= 8); register uint64_t x; register uint64_t i = (data); if (dlc < 8) return -1; /* BMS_M1_Cell_1_Thermistor: start-bit 0, length 8, endianess intel, scaling 1, offset 0 */ x = i & 0xff; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_1_Thermistor = x; /* BMS_M1_Cell_2_Thermistor: start-bit 8, length 8, endianess intel, scaling 1, offset 0 */ x = (i >> 8) & 0xff; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_2_Thermistor = x; /* BMS_M1_Cell_3_Thermistor: start-bit 16, length 8, endianess intel, scaling 1, offset 0 */ x = (i >> 16) & 0xff; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_3_Thermistor = x; /* BMS_M1_Cell_4_Thermistor: start-bit 24, length 8, endianess intel, scaling 1, offset 0 */ x = (i >> 24) & 0xff; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_4_Thermistor = x; /* BMS_M1_Cell_5_Thermistor: start-bit 32, length 8, endianess intel, scaling 1, offset 0 */ x = (i >> 32) & 0xff; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_5_Thermistor = x; /* BMS_M1_Cell_6_Thermistor: start-bit 40, length 8, endianess intel, scaling 1, offset 0 */ x = (i >> 40) & 0xff; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_6_Thermistor = x; /* BMS_M1_Cell_7_Thermistor: start-bit 48, length 8, endianess intel, scaling 1, offset 0 */ x = (i >> 48) & 0xff; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_7_Thermistor = x; /* BMS_M1_Cell_8_Thermistor: start-bit 56, length 8, endianess intel, scaling 1, offset 0 */ x = (i >> 56) & 0xff; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_8_Thermistor = x; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1_rx = 1; o->can_0x680_BMS_M1_Cell_Thermistor_Data_1_time_stamp_rx = time_stamp; return 8; } int decode_can_0x680_BMS_M1_Cell_1_Thermistor(const can_obj_all_sre_edited_h_t *o, uint8_t *out) { assert(o); assert(out); uint8_t rval = (uint8_t)(o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_1_Thermistor); *out = rval; return 0; } int encode_can_0x680_BMS_M1_Cell_1_Thermistor(can_obj_all_sre_edited_h_t *o, uint8_t in) { assert(o); o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_1_Thermistor = in; return 0; } int decode_can_0x680_BMS_M1_Cell_2_Thermistor(const can_obj_all_sre_edited_h_t *o, uint8_t *out) { assert(o); assert(out); uint8_t rval = (uint8_t)(o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_2_Thermistor); *out = rval; return 0; } int encode_can_0x680_BMS_M1_Cell_2_Thermistor(can_obj_all_sre_edited_h_t *o, uint8_t in) { assert(o); o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_2_Thermistor = in; return 0; } int decode_can_0x680_BMS_M1_Cell_3_Thermistor(const can_obj_all_sre_edited_h_t *o, uint8_t *out) { assert(o); assert(out); uint8_t rval = (uint8_t)(o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_3_Thermistor); *out = rval; return 0; } int encode_can_0x680_BMS_M1_Cell_3_Thermistor(can_obj_all_sre_edited_h_t *o, uint8_t in) { assert(o); o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_3_Thermistor = in; return 0; } int decode_can_0x680_BMS_M1_Cell_4_Thermistor(const can_obj_all_sre_edited_h_t *o, uint8_t *out) { assert(o); assert(out); uint8_t rval = (uint8_t)(o->can_0x680_BMS_M1_Cell_Thermistor_Data_1.BMS_M1_Cell_4_Thermistor); *out = rval; return 0; }