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

Source file for the ADP5055 IIO Driver. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "no_os_alloc.h"
#include "no_os_error.h"
#include "no_os_units.h"
#include "no_os_util.h"
#include "adp5055.h"
#include "iio_adp5055.h"
Include dependency graph for iio_adp5055.c:

Enumerations

enum  adp5055_iio_enable_type {
  ADP5055_IIO_VID ,
  ADP5055_IIO_AUTO_PWM_PSM ,
  ADP5055_IIO_OUTPUT_DISCHARGE ,
  ADP5055_IIO_PG_HW ,
  ADP5055_IIO_DVS_AUTO ,
  ADP5055_IIO_OCP_BLANKING ,
  ADP5055_IIO_PG_DELAY ,
  ADP5055_IIO_VID_GO
}
 
enum  adp5055_iio_output_chan_type {
  ADP5055_IIO_VOUT1_CHAN ,
  ADP5055_IIO_VOUT2_CHAN ,
  ADP5055_IIO_VOUT3_CHAN
}
 

Functions

int adp5055_iio_init (struct adp5055_iio_desc **iio_desc, struct adp5055_iio_desc_init_param *init_param)
 Initializes the ADP5055 IIO descriptor.
 
int adp5055_iio_remove (struct adp5055_iio_desc *iio_desc)
 Free resources allocated by the init function.
 

Detailed Description

Source file for the ADP5055 IIO Driver.

Author
Angelo Catapang (angel.nosp@m.o.ca.nosp@m.tapan.nosp@m.g@an.nosp@m.alog..nosp@m.com)

Copyright 2025(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Enumeration Type Documentation

◆ adp5055_iio_enable_type

Enumerator
ADP5055_IIO_VID 
ADP5055_IIO_AUTO_PWM_PSM 
ADP5055_IIO_OUTPUT_DISCHARGE 
ADP5055_IIO_PG_HW 
ADP5055_IIO_DVS_AUTO 
ADP5055_IIO_OCP_BLANKING 
ADP5055_IIO_PG_DELAY 
ADP5055_IIO_VID_GO 

◆ adp5055_iio_output_chan_type

Enumerator
ADP5055_IIO_VOUT1_CHAN 
ADP5055_IIO_VOUT2_CHAN 
ADP5055_IIO_VOUT3_CHAN 

Function Documentation

◆ adp5055_iio_init()

int adp5055_iio_init ( struct adp5055_iio_desc ** iio_desc,
struct adp5055_iio_desc_init_param * init_param )

Initializes the ADP5055 IIO descriptor.

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

◆ adp5055_iio_remove()

int adp5055_iio_remove ( struct adp5055_iio_desc * iio_desc)

Free resources allocated by the init function.

Parameters
iio_desc- The iio device descriptor.
Returns
0 in case of success, an error code otherwise.