no-OS
Loading...
Searching...
No Matches
max96793.h
Go to the documentation of this file.
1/*******************************************************************************
2 * @file max96793.h
3 * @brief Header file of MAX96793 Driver.
4 * @author Automotive Software and Systems team, Bangalore, India
5********************************************************************************
6 * Copyright 2025(c) Analog Devices, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright notice,
12 * this list of conditions and the following disclaimer.
13 *
14 * 2. Redistributions in binary form must reproduce the above copyright notice,
15 * this list of conditions and the following disclaimer in the documentation
16 * and/or other materials provided with the distribution.
17 *
18 * 3. Neither the name of Analog Devices, Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived from this
20 * software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. "AS IS" AND ANY EXPRESS OR
23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25 * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32******************************************************************************/
33#ifndef MAX96793_H
34#define MAX96793_H
35
36#include <stdbool.h>
37#include <stdint.h>
38#include "gmsl_common.h"
39
40#define MAX96793_LMN_COUNT (2u) /* Number of LMN */
41#define MAX96793_MIPI_PHY_COUNT (2u) /* Number of PHY */
42
43#define MAX96793_DEV_STATE_MEM_SIZE (sizeof(struct max96793_state))
44
53
63
69 /* To_do: state variable or members to be added */
70 uint8_t dummy;
71};
72
73int32_t max96793_init(struct gmsl_dev **device, struct no_os_i2c_desc *i2c_desc,
74 void *init_param);
75int32_t max96793_remove(struct gmsl_dev *dev);
76
77#endif
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
int32_t max96793_remove(struct gmsl_dev *dev)
Free memory allocated by max96793_init().
Definition max96793.c:188
int32_t max96793_init(struct gmsl_dev **device, struct no_os_i2c_desc *i2c_desc, void *init_param)
Initialize the MAX96793 device.
Definition max96793.c:109
max96793_phy
Enumeration for MAX96793 PHY.
Definition max96793.h:49
@ MAX96793_PHY_2
Definition max96793.h:51
@ MAX96793_PHY_1
Definition max96793.h:50
Definition ad9361_util.h:63
Structure representing a GMSL device handle, containing configuration parameters and diagnostic opera...
Definition gmsl_common.h:159
Structure representing the capabilities of the MAX96793 device.
Definition max96793.h:58
uint8_t max_lmn_count
Definition max96793.h:60
uint8_t max_links_count
Definition max96793.h:59
uint8_t max_phy_ctrlr
Definition max96793.h:61
Structure representing MAX96793 device state.
Definition max96793.h:68
uint8_t dummy
Definition max96793.h:70
Structure holding I2C address descriptor.
Definition no_os_i2c.h:89