Firmware
Public Member Functions | Protected Member Functions | List of all members
LidarLiteI2C Class Reference
Inheritance diagram for LidarLiteI2C:
LidarLite

Public Member Functions

 LidarLiteI2C (int bus, const char *path, uint8_t rotation=distance_sensor_s::ROTATION_DOWNWARD_FACING, int address=LL40LS_BASEADDR)
 
int init () override
 
ssize_t read (device::file_t *filp, char *buffer, size_t buflen) override
 
int ioctl (device::file_t *filp, int cmd, unsigned long arg) override
 
void print_info () override
 Diagnostics - print some basic information about the driver.
 
void print_registers () override
 print registers to console
 
const char * get_dev_name () override
 

Protected Member Functions

int probe () override
 
int read_reg (uint8_t reg, uint8_t &val)
 
int write_reg (uint8_t reg, uint8_t val)
 
int measure () override
 
int reset_sensor () override
 
- Protected Member Functions inherited from LidarLite
void set_minimum_distance (const float min)
 Set the min and max distance thresholds if you want the end points of the sensors range to be brought in at all, otherwise it will use the defaults LL40LS_MIN_DISTANCE and LL40LS_MAX_DISTANCE_V3.
 
void set_maximum_distance (const float max)
 
float get_minimum_distance () const
 
float get_maximum_distance () const
 
uint32_t getMeasureTicks () const
 

The documentation for this class was generated from the following files: