Lines Matching full:body

287 // Body - full record
335 * Compact Sensor Record(body) - SDR Type 2
362 * Event Only Sensor Record(body) - SDR Type 3
380 * FRU Device Locator Record(body) - SDR Type 11
396 * Entity Association Record(body) - SDR Type 8
408 namespace body namespace
412 SensorDataFullRecordBody* body) in set_entity_instance_number() argument
414 body->entity_instance &= 1 << 7; in set_entity_instance_number()
415 body->entity_instance |= (n & ~(1 << 7)); in set_entity_instance_number()
417 inline void set_entity_physical_entity(SensorDataFullRecordBody* body) in set_entity_physical_entity() argument
419 body->entity_instance &= ~(1 << 7); in set_entity_physical_entity()
421 inline void set_entity_logical_container(SensorDataFullRecordBody* body) in set_entity_logical_container() argument
423 body->entity_instance |= 1 << 7; in set_entity_logical_container()
426 inline void sensor_scanning_state(bool enabled, SensorDataFullRecordBody* body) in sensor_scanning_state() argument
430 body->sensor_initialization |= 1 << 0; in sensor_scanning_state()
434 body->sensor_initialization &= ~(1 << 0); in sensor_scanning_state()
437 inline void event_generation_state(bool enabled, SensorDataFullRecordBody* body) in event_generation_state() argument
441 body->sensor_initialization |= 1 << 1; in event_generation_state()
445 body->sensor_initialization &= ~(1 << 1); in event_generation_state()
448 inline void init_types_state(bool enabled, SensorDataFullRecordBody* body) in init_types_state() argument
452 body->sensor_initialization |= 1 << 2; in init_types_state()
456 body->sensor_initialization &= ~(1 << 2); in init_types_state()
459 inline void init_hyst_state(bool enabled, SensorDataFullRecordBody* body) in init_hyst_state() argument
463 body->sensor_initialization |= 1 << 3; in init_hyst_state()
467 body->sensor_initialization &= ~(1 << 3); in init_hyst_state()
470 inline void init_thresh_state(bool enabled, SensorDataFullRecordBody* body) in init_thresh_state() argument
474 body->sensor_initialization |= 1 << 4; in init_thresh_state()
478 body->sensor_initialization &= ~(1 << 4); in init_thresh_state()
481 inline void init_events_state(bool enabled, SensorDataFullRecordBody* body) in init_events_state() argument
485 body->sensor_initialization |= 1 << 5; in init_events_state()
489 body->sensor_initialization &= ~(1 << 5); in init_events_state()
492 inline void init_scanning_state(bool enabled, SensorDataFullRecordBody* body) in init_scanning_state() argument
496 body->sensor_initialization |= 1 << 6; in init_scanning_state()
500 body->sensor_initialization &= ~(1 << 6); in init_scanning_state()
503 inline void init_settable_state(bool enabled, SensorDataFullRecordBody* body) in init_settable_state() argument
507 body->sensor_initialization |= 1 << 7; in init_settable_state()
511 body->sensor_initialization &= ~(1 << 7); in init_settable_state()
515 inline void set_percentage(SensorDataFullRecordBody* body) in set_percentage() argument
517 body->sensor_units_1 |= 1 << 0; in set_percentage()
519 inline void unset_percentage(SensorDataFullRecordBody* body) in unset_percentage() argument
521 body->sensor_units_1 &= ~(1 << 0); in unset_percentage()
523 inline void set_modifier_operation(uint8_t op, SensorDataFullRecordBody* body) in set_modifier_operation() argument
525 body->sensor_units_1 &= ~(3 << 1); in set_modifier_operation()
526 body->sensor_units_1 |= (op & 0x3) << 1; in set_modifier_operation()
528 inline void set_rate_unit(uint8_t unit, SensorDataFullRecordBody* body) in set_rate_unit() argument
530 body->sensor_units_1 &= ~(7 << 3); in set_rate_unit()
531 body->sensor_units_1 |= (unit & 0x7) << 3; in set_rate_unit()
534 SensorDataFullRecordBody* body) in set_analog_data_format() argument
536 body->sensor_units_1 &= ~(3 << 6); in set_analog_data_format()
537 body->sensor_units_1 |= (format & 0x3) << 6; in set_analog_data_format()
540 inline void set_m(uint16_t m, SensorDataFullRecordBody* body) in set_m() argument
542 body->m_lsb = m & 0xff; in set_m()
543 body->m_msb_and_tolerance &= ~(3 << 6); in set_m()
544 body->m_msb_and_tolerance |= ((m & (3 << 8)) >> 2); in set_m()
546 inline void set_tolerance(uint8_t tol, SensorDataFullRecordBody* body) in set_tolerance() argument
548 body->m_msb_and_tolerance &= ~0x3f; in set_tolerance()
549 body->m_msb_and_tolerance |= tol & 0x3f; in set_tolerance()
552 inline void set_b(uint16_t b, SensorDataFullRecordBody* body) in set_b() argument
554 body->b_lsb = b & 0xff; in set_b()
555 body->b_msb_and_accuracy_lsb &= ~(3 << 6); in set_b()
556 body->b_msb_and_accuracy_lsb |= ((b & (3 << 8)) >> 2); in set_b()
558 inline void set_accuracy(uint16_t acc, SensorDataFullRecordBody* body) in set_accuracy() argument
561 body->b_msb_and_accuracy_lsb &= ~0x3f; in set_accuracy()
562 body->b_msb_and_accuracy_lsb |= acc & 0x3f; in set_accuracy()
564 body->accuracy_and_sensor_direction &= 0x0f; in set_accuracy()
565 body->accuracy_and_sensor_direction |= ((acc >> 6) & 0xf) << 4; in set_accuracy()
567 inline void set_accuracy_exp(uint8_t exp, SensorDataFullRecordBody* body) in set_accuracy_exp() argument
569 body->accuracy_and_sensor_direction &= ~(3 << 2); in set_accuracy_exp()
570 body->accuracy_and_sensor_direction |= (exp & 3) << 2; in set_accuracy_exp()
572 inline void set_sensor_dir(uint8_t dir, SensorDataFullRecordBody* body) in set_sensor_dir() argument
574 body->accuracy_and_sensor_direction &= ~(3 << 0); in set_sensor_dir()
575 body->accuracy_and_sensor_direction |= (dir & 3); in set_sensor_dir()
578 inline void set_b_exp(uint8_t exp, SensorDataFullRecordBody* body) in set_b_exp() argument
580 body->r_b_exponents &= 0xf0; in set_b_exp()
581 body->r_b_exponents |= exp & 0x0f; in set_b_exp()
583 inline void set_r_exp(uint8_t exp, SensorDataFullRecordBody* body) in set_r_exp() argument
585 body->r_b_exponents &= 0x0f; in set_r_exp()
586 body->r_b_exponents |= (exp & 0x0f) << 4; in set_r_exp()
589 inline void set_id_strlen(uint8_t len, SensorDataFullRecordBody* body) in set_id_strlen() argument
591 body->id_string_info &= ~(0x1f); in set_id_strlen()
592 body->id_string_info |= len & 0x1f; in set_id_strlen()
594 inline void set_id_strlen(uint8_t len, SensorDataEventRecordBody* body) in set_id_strlen() argument
596 body->id_string_info &= ~(0x1f); in set_id_strlen()
597 body->id_string_info |= len & 0x1f; in set_id_strlen()
599 inline uint8_t get_id_strlen(SensorDataFullRecordBody* body) in get_id_strlen() argument
601 return body->id_string_info & 0x1f; in get_id_strlen()
603 inline void set_id_type(uint8_t type, SensorDataFullRecordBody* body) in set_id_type() argument
605 body->id_string_info &= ~(3 << 6); in set_id_type()
606 body->id_string_info |= (type & 0x3) << 6; in set_id_type()
608 inline void set_id_type(uint8_t type, SensorDataEventRecordBody* body) in set_id_type() argument
610 body->id_string_info &= ~(3 << 6); in set_id_type()
611 body->id_string_info |= (type & 0x3) << 6; in set_id_type()
614 inline void set_device_id_strlen(uint8_t len, SensorDataFruRecordBody* body) in set_device_id_strlen() argument
616 body->deviceIDLen &= ~(LENGTH_MASK); in set_device_id_strlen()
617 body->deviceIDLen |= len & LENGTH_MASK; in set_device_id_strlen()
620 inline uint8_t get_device_id_strlen(SensorDataFruRecordBody* body) in get_device_id_strlen() argument
622 return body->deviceIDLen & LENGTH_MASK; in get_device_id_strlen()
625 inline void set_readable_mask(uint8_t mask, SensorDataFullRecordBody* body) in set_readable_mask() argument
627 body->discrete_reading_setting_mask[1] = mask & 0x3F; in set_readable_mask()
630 } // namespace body
651 SensorDataFullRecordBody body; member
662 SensorDataCompactRecordBody body; member
673 SensorDataEventRecordBody body; member
684 SensorDataFruRecordBody body; member
695 SensorDataEntityRecordBody body; member