Time-of-Flight-SDK
|
Provides access to the low level functionality of the camera sensor. This includes sensor configuration as well as analog front end(AFE) configuration. More...
#include <depth_sensor_interface.h>
Public Member Functions | |
virtual | ~DepthSensorInterface ()=default |
Destructor. | |
virtual aditof::Status | open ()=0 |
Open the communication channels with the hardware. More... | |
virtual aditof::Status | start ()=0 |
Start the streaming of data from the sensor. More... | |
virtual aditof::Status | stop ()=0 |
Stop the sensor data stream. More... | |
virtual aditof::Status | getAvailableFrameTypes (std::vector< aditof::DepthSensorFrameType > &types)=0 |
Return all frame types that are supported by the sensor. More... | |
virtual aditof::Status | setFrameType (const aditof::DepthSensorFrameType &type)=0 |
Set the sensor frame type to the given type. More... | |
virtual aditof::Status | program (const uint8_t *firmware, size_t size)=0 |
Program the sensor with the given firmware. More... | |
virtual aditof::Status | getFrame (uint16_t *buffer)=0 |
Request a frame from the sensor. More... | |
virtual aditof::Status | readRegisters (const uint16_t *address, uint16_t *data, size_t length, bool burst=true)=0 |
Read multiple registers from AFE. More... | |
virtual aditof::Status | writeRegisters (const uint16_t *address, const uint16_t *data, size_t length, bool burst=true)=0 |
Write to multiple AFE registers. More... | |
virtual aditof::Status | adsd3500_read_cmd (uint16_t cmd, uint16_t *data, unsigned int usDelay=0)=0 |
Send a read command to adsd3500. More... | |
virtual aditof::Status | adsd3500_write_cmd (uint16_t cmd, uint16_t data)=0 |
Send a write command to adsd3500. More... | |
virtual aditof::Status | adsd3500_read_payload_cmd (uint32_t cmd, uint8_t *readback_data, uint16_t payload_len)=0 |
Send a read command to adsd3500. This will perform a burst read making it useful for reading chunks of data. More... | |
virtual aditof::Status | adsd3500_read_payload (uint8_t *payload, uint16_t payload_len)=0 |
Reads a chunk of data from adsd3500. This will perform a burst read making it useful for reading chunks of data. More... | |
virtual aditof::Status | adsd3500_write_payload_cmd (uint32_t cmd, uint8_t *payload, uint16_t payload_len)=0 |
Send a write command to adsd3500. This will perform a burst write making it useful for writing chunks of data. More... | |
virtual aditof::Status | adsd3500_write_payload (uint8_t *payload, uint16_t payload_len)=0 |
Send a chunk of data (payload) to adsd3500. This will perform a burst write making it useful for writing chunks of data. More... | |
virtual aditof::Status | adsd3500_reset ()=0 |
Reset adsd3500 chip. More... | |
virtual aditof::Status | adsd3500_register_interrupt_callback (SensorInterruptCallback &cb)=0 |
Register a function to be called when a ADSD3500 interrupt occurs. More... | |
virtual aditof::Status | adsd3500_unregister_interrupt_callback (SensorInterruptCallback &cb)=0 |
Unregister a function registered with adsd3500_register_interrupt_callback. More... | |
virtual aditof::Status | adsd3500_get_status (int &chipStatus, int &imagerStatus)=0 |
Returns the chip status. More... | |
virtual Status | getAvailableControls (std::vector< std::string > &controls) const =0 |
Gets the sensors's list of controls. More... | |
virtual Status | setControl (const std::string &control, const std::string &value)=0 |
Sets a specific sensor control. More... | |
virtual Status | getControl (const std::string &control, std::string &value) const =0 |
Gets the value of a specific sensor control. More... | |
virtual aditof::Status | getDetails (aditof::SensorDetails &details) const =0 |
Get a structure that contains information about the instance of the sensor. More... | |
virtual aditof::Status | getHandle (void **handle)=0 |
Gets a handle to be used by other devices such as Storage, Temperature, etc. This handle will allow the other devices to communicate remotely with the embedded target. More... | |
virtual aditof::Status | getName (std::string &name) const =0 |
Get the name of the sensor. More... | |
virtual aditof::Status | setHostConnectionType (std::string &connectionType)=0 |
Set the host connection type for target sdk. More... | |
virtual aditof::Status | initTargetDepthCompute (uint8_t *iniFile, uint16_t iniFileLength, uint8_t *calData, uint16_t calDataLength)=0 |
Get the name of the sensor. More... | |
virtual aditof::Status | getIniParams (std::map< std::string, float > ¶ms)=0 |
Get ini parameters for Depth Compute library. More... | |
virtual aditof::Status | setIniParams (const std::map< std::string, float > ¶ms)=0 |
Set ini parameters for Depth Compute library. More... | |
Provides access to the low level functionality of the camera sensor. This includes sensor configuration as well as analog front end(AFE) configuration.
Definition at line 57 of file depth_sensor_interface.h.
|
pure virtual |
Returns the chip status.
[out] | chipStatus | - chip status (error) value |
[out] | imagerStatus | - imager status (error) value |
|
pure virtual |
Send a read command to adsd3500.
cmd | - the command to be sent | |
[out] | data | - the variable where the read data will be stored |
usDelay | - the number of microseconds to wait between the host command and the actual read |
|
pure virtual |
Reads a chunk of data from adsd3500. This will perform a burst read making it useful for reading chunks of data.
payload | - the location from where to take the data chunk and read it |
payload_len | - the number of bytes to read |
|
pure virtual |
Send a read command to adsd3500. This will perform a burst read making it useful for reading chunks of data.
cmd | - the command to be sent | |
[out] | readback_data | - the location where the read data chunk will be stored |
payload_len | - the number of bytes to read |
|
pure virtual |
Register a function to be called when a ADSD3500 interrupt occurs.
cb | - the function to be called whenever the interrupt occurs |
|
pure virtual |
Reset adsd3500 chip.
|
pure virtual |
Unregister a function registered with adsd3500_register_interrupt_callback.
cb | - the function to be unregistred |
|
pure virtual |
Send a write command to adsd3500.
cmd | - the command to be sent |
data | - the data to be written |
|
pure virtual |
Send a chunk of data (payload) to adsd3500. This will perform a burst write making it useful for writing chunks of data.
payload | - the location from where to take the data chunk and write it |
payload_len | - the number of bytes to write |
|
pure virtual |
Send a write command to adsd3500. This will perform a burst write making it useful for writing chunks of data.
cmd | - the command to be sent |
payload | - the location from where to take the data chunk and write it |
payload_len | - the number of bytes to write |
|
pure virtual |
Gets the sensors's list of controls.
[out] | controls |
|
pure virtual |
Return all frame types that are supported by the sensor.
[out] | types |
|
pure virtual |
Gets the value of a specific sensor control.
[in] | control | - Control name |
[out] | value | - Control value |
|
pure virtual |
Get a structure that contains information about the instance of the sensor.
[out] | details | - the variable where the sensor details should be stored |
|
pure virtual |
Request a frame from the sensor.
buffer | - a valid location where the new frame should be stored. The size of the frame is known (cached) internally and gets updated each time setFrameType() is called. |
|
pure virtual |
Gets a handle to be used by other devices such as Storage, Temperature, etc. This handle will allow the other devices to communicate remotely with the embedded target.
[out] | handle | - the handle which is owned by this instance |
|
pure virtual |
Get ini parameters for Depth Compute library.
[in] | params | - a dictionary of parameters |
|
pure virtual |
Get the name of the sensor.
[out] | name | - the string in which the name is stored |
|
pure virtual |
Get the name of the sensor.
[in] | iniFile | - iniFile content parsed as uint8_t* |
[in] | iniFileLength | - iniFile content length |
[in] | calData | - calibration data parsed as uint8_t* |
[in] | calDataLength | - calibration data content length |
|
pure virtual |
Open the communication channels with the hardware.
|
pure virtual |
Program the sensor with the given firmware.
firmware | - chunk of data representin the firmware |
size | - the size of the firmware data in bytes |
|
pure virtual |
Read multiple registers from AFE.
address | - memory location pointing to addresses of registers to be read |
data | - a valid location to store the content read from AFE registers |
length | - the number of registers to read |
burst | - if enabled the function will read data starting from the provided address; if disabled it will read data from the provided address list . |
|
pure virtual |
Sets a specific sensor control.
[in] | control | - Control name |
[in] | value | - Control value |
|
pure virtual |
Set the sensor frame type to the given type.
type | - frame details structure containing the frame type |
|
pure virtual |
Set the host connection type for target sdk.
[in] | connectionType | - the string that sets the host type on the target |
|
pure virtual |
Set ini parameters for Depth Compute library.
[in] | params | - a dictionary of parameters |
|
pure virtual |
Start the streaming of data from the sensor.
|
pure virtual |
Stop the sensor data stream.
|
pure virtual |
Write to multiple AFE registers.
address | - memory location pointing to addresses of registers to be written |
data | - the location of the content to be written to AFE registers |
length | - the number of registers to write |
burst | - if enabled the function will write data starting from the provided address; if disabled it will write data at the provided address list . |