APM:Libraries
AP_BattMonitor_SMBus_Solo.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <AP_Common/AP_Common.h>
4 #include <AP_Param/AP_Param.h>
5 #include <AP_Math/AP_Math.h>
6 #include "AP_BattMonitor_SMBus.h"
7 #include <AP_HAL/I2CDevice.h>
8 
10 {
11 public:
12 
13  // Constructor
16  AP_BattMonitor_Params &params,
18 
19 private:
20 
21  void timer(void) override;
22 
23  // read_block - returns number of characters read if successful, zero if unsuccessful
24  uint8_t read_block(uint8_t reg, uint8_t* data, uint8_t max_len, bool append_zero) const;
25 
27 };
AP_BattMonitor_SMBus_Solo(AP_BattMonitor &mon, AP_BattMonitor::BattMonitor_State &mon_state, AP_BattMonitor_Params &params, AP_HAL::OwnPtr< AP_HAL::I2CDevice > dev)
uint8_t read_block(uint8_t reg, uint8_t *data, uint8_t max_len, bool append_zero) const
A system for managing and storing variables that are of general interest to the system.
static AP_HAL::OwnPtr< AP_HAL::Device > dev
Definition: ICM20789.cpp:16
Common definitions and utility routines for the ArduPilot libraries.