VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
abstract_sensor_driver.h
Go to the documentation of this file.
1#ifndef VITROIO_SDK_ABSTRACT_SENSOR_DRIVER_H
2#define VITROIO_SDK_ABSTRACT_SENSOR_DRIVER_H
3
4#include <stdint.h>
5
6namespace vitroio
7{
8
9namespace sdk
10{
11
25{
26public:
28 {}
29
31 {}
32
39 virtual int open() = 0;
40
44 virtual void close() = 0;
45
57 virtual int read(char* buffer, uint32_t address, uint32_t bytes) = 0;
58
70 virtual int write(const char* buffer, uint32_t address, uint32_t bytes) = 0;
71
81 virtual int ioctl(int request, void* value) = 0;
82};
83
88} // namespace sdk
89
90} // namespace vitroio
91
92#endif // VITROIO_SDK_ABSTRACT_SENSOR_DRIVER_H
Virtual class providing interface for sensor drivers.
Definition: abstract_sensor_driver.h:25
virtual void close()=0
Function deinitializes the sensor.
virtual int write(const char *buffer, uint32_t address, uint32_t bytes)=0
Function allows to write specified amount of data to provided address.
virtual ~AbstractSensorDriver()
Definition: abstract_sensor_driver.h:30
virtual int ioctl(int request, void *value)=0
Function allows to perform sensor specific operation.
virtual int open()=0
Function initializes the sensor.
AbstractSensorDriver()
Definition: abstract_sensor_driver.h:27
virtual int read(char *buffer, uint32_t address, uint32_t bytes)=0
Function allows to read specified amount of data from provided address.
The namespace contains all of components of vitro-shard-sdk and components based on the sdk....
Definition: can_layer.h:9