no-OS
Loading...
Searching...
No Matches
adl8113.c File Reference

Implementation of ADL8113 Driver. More...

#include <stdio.h>
#include <stdlib.h>
#include "adl8113.h"
#include "no_os_error.h"
#include "no_os_alloc.h"
Include dependency graph for adl8113.c:

Functions

int adl8113_set_mode (struct adl8113_dev *dev, enum adl8113_mode mode)
 
int adl8113_get_mode (struct adl8113_dev *dev, enum adl8113_mode *mode)
 
int adl8113_init (struct adl8113_dev **device, struct adl8113_init_param *init_param)
 
int adl8113_remove (struct adl8113_dev *dev)
 

Detailed Description

Implementation of ADL8113 Driver.

Author
Antoniu Miclaus (anton.nosp@m.iu.m.nosp@m.iclau.nosp@m.s@an.nosp@m.alog..nosp@m.com)

Copyright 2025(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ adl8113_get_mode()

int adl8113_get_mode ( struct adl8113_dev * dev,
enum adl8113_mode * mode )

Get current operation mode.

Parameters
dev- The device structure.
mode- Pointer to store the current operation mode.
Returns
0 in case of success, negative error code otherwise.

◆ adl8113_init()

int adl8113_init ( struct adl8113_dev ** device,
struct adl8113_init_param * init_param )

Initialize the device.

Parameters
device- The device structure.
init_param- The structure that contains the device initial parameters.
Returns
0 in case of success, negative error code otherwise.

◆ adl8113_remove()

int adl8113_remove ( struct adl8113_dev * dev)

Free the resources allocated by adl8113_init().

Parameters
dev- The device structure.
Returns
0 in case of success, negative error code otherwise.

◆ adl8113_set_mode()

int adl8113_set_mode ( struct adl8113_dev * dev,
enum adl8113_mode mode )

Set operation mode (LNA or Bypass).

Parameters
dev- The device structure.
mode- Operation mode (ADL8113_LNA_MODE or ADL8113_BYPASS_MODE).
Returns
0 in case of success, negative error code otherwise.