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:

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.

SPDX-License-Identifier: BSD-3-Clause

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.