Pixy2 transport layer API. More...
#include <zephyr/device.h>
Go to the source code of this file.
Classes | |
struct | pixy2_checksum_header |
Pixy2 message header with checksum included. More... | |
struct | pixy2_header |
Pixy2 message header with no checksum included. More... | |
struct | pixy2_message |
struct | pixy2_transport |
Pixy2 transport layer structure. More... | |
struct | pixy2_i2c_transport |
Pixy2 I2C transport structure. More... | |
struct | pixy2_spi_transport |
Pixy2 SPI transport structure. More... | |
struct | pixy2_transport_api |
Pixy2 transport API. More... | |
Functions | |
static int | pixy2_transport_transceive (struct pixy2_transport *t, struct pixy2_message *req, struct pixy2_message *reply) |
Send a request and wait for its reply. | |
Pixy2 transport layer API.
This file offers the transport layer API required for delivering and receiving messages to/from the Pixy2 camera.
|
inlinestatic |
Send a request and wait for its reply.
This function is used to send a request to the Pixy2 camera and wait for its reply.
t | pointer to the generic transport layer data |
req | pointer to the request data |
reply | pointer to the reply data |
0 | if success |
negative | errno code if error |