Jetson Linux API Reference

32.6.1 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
max9295.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018, NVIDIA Corporation. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms and conditions of the GNU General Public License,
6  * version 2, as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11  * more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
25 #ifndef __MAX9295_H__
26 #define __MAX9295_H__
27 
28 #include <media/gmsl-link.h>
53 int max9295_setup_control(struct device *dev);
54 
62 int max9295_reset_control(struct device *dev);
63 
74 int max9295_sdev_pair(struct device *dev, struct gmsl_link_ctx *g_ctx);
75 
86 int max9295_sdev_unpair(struct device *dev, struct device *s_dev);
87 
96 int max9295_setup_streaming(struct device *dev);
97 
100 #endif /* __MAX9295_H__ */
int max9295_sdev_unpair(struct device *dev, struct device *s_dev)
Unpairs a sensor device from a serializer device.
int max9295_sdev_pair(struct device *dev, struct gmsl_link_ctx *g_ctx)
Pairs a sensor device with a serializer device.
int max9295_setup_control(struct device *dev)
Powers on a serializer device and performs the I2C overrides for sensor and serializer devices...
int max9295_setup_streaming(struct device *dev)
Sets up the serializer device's internal pipeline for a specified sensor/serializer pair...
int max9295_reset_control(struct device *dev)
Reverts I2C overrides and resets a serializer device.