FRDM-IMX93 for NXP CUP
FRDM-IMX93 support for NXP CUP
 
Loading...
Searching...
No Matches
pixy2_transport.h File Reference

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.
 

Detailed Description

Pixy2 transport layer API.

This file offers the transport layer API required for delivering and receiving messages to/from the Pixy2 camera.

Function Documentation

◆ pixy2_transport_transceive()

static int pixy2_transport_transceive ( struct pixy2_transport t,
struct pixy2_message req,
struct pixy2_message reply 
)
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.

Parameters
tpointer to the generic transport layer data
reqpointer to the request data
replypointer to the reply data
Return values
0if success
negativeerrno code if error