Jetson Linux API Reference

32.7.5 Release
MAX9295 serializer driver

Detailed Description

Controls the MAX9295 serializer module.

Functions

int max9295_setup_control (struct device *dev)
 Powers on a serializer device and performs the I2C overrides for sensor and serializer devices. More...
 
int max9295_reset_control (struct device *dev)
 Reverts I2C overrides and resets a serializer device. More...
 
int max9295_sdev_pair (struct device *dev, struct gmsl_link_ctx *g_ctx)
 Pairs a sensor device with a serializer device. More...
 
int max9295_sdev_unpair (struct device *dev, struct device *s_dev)
 Unpairs a sensor device from a serializer device. More...
 
int max9295_setup_streaming (struct device *dev)
 Sets up the serializer device's internal pipeline for a specified sensor/serializer pair. More...
 

Function Documentation

◆ max9295_reset_control()

int max9295_reset_control ( struct device *  dev)

Reverts I2C overrides and resets a serializer device.

Parameters
[in]devThe serializer device handle.
Returns
0 for success, or -1 otherwise.

◆ max9295_sdev_pair()

int max9295_sdev_pair ( struct device *  dev,
struct gmsl_link_ctx g_ctx 
)

Pairs a sensor device with a serializer device.

To be called by sensor client driver.

Parameters
[in]devThe deserializer device handle.
[in]g_ctxThe gmsl_link_ctx structure handle.
Returns
0 for success, or -1 otherwise.

◆ max9295_sdev_unpair()

int max9295_sdev_unpair ( struct device *  dev,
struct device *  s_dev 
)

Unpairs a sensor device from a serializer device.

To be called by sensor client driver.

Parameters
[in]devThe serializer device handle.
[in]s_devThe sensor device handle.
Returns
0 for success, or -1 otherwise.

◆ max9295_setup_control()

int max9295_setup_control ( struct device *  dev)

Powers on a serializer device and performs the I2C overrides for sensor and serializer devices.

The I2C overrides include setting proxy I2C slave addresses for the devices.

Before the client calls this function it must ensure that the deserializer device is in link_ex exclusive link mode by calling the deserializer driver's max9296_setup_link() function.

Parameters
[in]devThe serializer device handle.
Returns
0 for success, or -1 otherwise.

◆ max9295_setup_streaming()

int max9295_setup_streaming ( struct device *  dev)

Sets up the serializer device's internal pipeline for a specified sensor/serializer pair.

Parameters
[in]devThe serializer device handle.
Returns
0 for success, or -1 otherwise.