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

Header file for ADL8113 Driver. More...

#include <stdint.h>
#include <stdbool.h>
#include "no_os_gpio.h"
Include dependency graph for adl8113.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  adl8113_dev
 ADL8113 Device Descriptor. More...
 
struct  adl8113_init_param
 ADL8113 Initialization Parameters structure. More...
 

Enumerations

enum  adl8113_mode {
  ADL8113_INTERNAL_AMPLIFIER ,
  ADL8113_INTERNAL_BYPASS ,
  ADL8113_EXTERNAL_BYPASS_A ,
  ADL8113_EXTERNAL_BYPASS_B
}
 ADL8113 Operation Mode. More...
 

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

Header file for 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.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Enumeration Type Documentation

◆ adl8113_mode

ADL8113 Operation Mode.

Enumerator
ADL8113_INTERNAL_AMPLIFIER 
ADL8113_INTERNAL_BYPASS 
ADL8113_EXTERNAL_BYPASS_A 
ADL8113_EXTERNAL_BYPASS_B 

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.
Here is the caller graph for this function: