no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ad7091r.h
Go to the documentation of this file.
1/***************************************************************************/
33
34#ifndef __AD7091R_H__
35#define __AD7091R_H__
36
37#include <stdint.h>
38#include "no_os_spi.h"
39
41 /* SPI */
43};
44
46 /* SPI */
48};
49
51int8_t ad7091r_init(struct ad7091r_dev **device,
53
55int32_t ad5686_remove(struct ad7091r_dev *dev);
56
58void ad7091r_software_reset(struct ad7091r_dev *dev);
59
61uint16_t ad7091r_read_sample(struct ad7091r_dev *dev);
62
64void ad7091r_power_down(struct ad7091r_dev *dev);
65
67void ad7091r_power_up(struct ad7091r_dev *dev);
68
70float ad7091r_convert_to_volts(int16_t raw_sample, float v_ref);
71
72#endif /* __AD7091R_H__ */
int8_t ad7091r_init(struct ad7091r_dev **device, struct ad7091r_init_param init_param)
Initializes the communication peripheral and the initial Values for AD7092R Board.
Definition ad7091r.c:52
uint16_t ad7091r_read_sample(struct ad7091r_dev *dev)
Initiates one conversion and reads back the result. During this process the device runs in normal mod...
Definition ad7091r.c:120
int32_t ad5686_remove(struct ad7091r_dev *dev)
float ad7091r_convert_to_volts(int16_t raw_sample, float v_ref)
Converts a 12-bit raw sample to volts.
Definition ad7091r.c:178
void ad7091r_software_reset(struct ad7091r_dev *dev)
Initiate a software reset of the device. The AD7091R requires the user to initiate a software reset w...
Definition ad7091r.c:97
void ad7091r_power_up(struct ad7091r_dev *dev)
Powers up the device by pulling CONVST high. After calling this function, a time delay is required be...
Definition ad7091r.c:161
void ad7091r_power_down(struct ad7091r_dev *dev)
Puts the device in power-down mode.
Definition ad7091r.c:141
struct ad7616_init_param init_param
Definition ad7616_sdz.c:107
Header file of SPI Interface.
Definition ad7091r.h:40
struct no_os_spi_desc * spi_desc
Definition ad7091r.h:42
Definition ad7091r.h:45
struct no_os_spi_init_param spi_init
Definition ad7091r.h:47
Definition ad9361_util.h:63
Structure holding SPI descriptor.
Definition no_os_spi.h:180
Structure holding the parameters for SPI initialization.
Definition no_os_spi.h:128