Controls the MAX9295 serializer module.
◆ max9295_reset_control()
int max9295_reset_control |
( |
struct device * |
dev | ) |
|
Reverts I2C overrides and resets a serializer device.
- Parameters
-
[in] | dev | The 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] | dev | The deserializer device handle. |
[in] | g_ctx | The 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] | dev | The serializer device handle. |
[in] | s_dev | The 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] | dev | The 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] | dev | The serializer device handle. |
- Returns
- 0 for success, or -1 otherwise.