LCOV - code coverage report
Current view: top level - SITL - SIM_BattMonitor_SMBus_Maxell.cpp (source / functions) Hit Total Coverage
Test: lcov.info Lines: 8 8 100.0 %
Date: 2026-09-09 11:02:08 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #include "SIM_config.h"
       2             : 
       3             : #if AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED
       4             : 
       5             : #include "SIM_BattMonitor_SMBus_Maxell.h"
       6             : 
       7        2145 : SITL::Maxell::Maxell() :
       8        2145 :     SIM_BattMonitor_SMBus_Generic()
       9             : {
      10             :     // TO DO set maxell batteries PEC version to V1
      11             :     
      12             :     // Note Maxell batteries do not support PEC and ArduPilot checks for this by
      13             :     // checking that the manufacturer name matches "Hitachi maxell"
      14        2145 :     const char *manufacturer_name = "Hitachi maxell";
      15        2145 :     set_block(SMBusBattDevReg::MANUFACTURE_NAME, manufacturer_name);
      16             : 
      17        2145 :     const char *device_name = "SITL_maxell";
      18        2145 :     set_block(SMBusBattDevReg::DEVICE_NAME, device_name);
      19             :     
      20        2145 :     set_register(SMBusBattGenericDevReg::SERIAL, (uint16_t)37);
      21        2145 : }
      22             : 
      23             : #endif // AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED

Generated by: LCOV version 1.14