no-OS
iio_max24287.h
Go to the documentation of this file.
1 #ifndef IIO_MAX24287_H
2 #define IIO_MAX24287_H
3 
4 #include "iio.h"
5 #include "max24287.h"
6 
8  struct max24287_desc *dev;
9  struct iio_device *iio_dev;
10 };
11 
13  struct max24287_desc *dev;
14 };
15 
20 };
21 
22 int32_t max24287_iio_init(struct max24287_iio_desc **iio_dev,
24 int32_t max24287_iio_remove(struct max24287_iio_desc *desc);
25 
26 #endif
max24287_iio_init
int32_t max24287_iio_init(struct max24287_iio_desc **iio_dev, struct max24287_iio_init_param *init_param)
Definition: iio_max24287.c:131
max24287_link_is_up
bool max24287_link_is_up(struct max24287_desc *dev)
Definition: max24287.c:258
max24287_iio_remove
int32_t max24287_iio_remove(struct max24287_iio_desc *iiodev)
Definition: iio_max24287.c:162
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
MAX24287_IIO_ATTR_PAR_SPEED
@ MAX24287_IIO_ATTR_PAR_SPEED
Definition: iio_max24287.h:17
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:50
max24287_iio_desc
Definition: iio_max24287.h:7
max24287_config_link
int max24287_config_link(struct max24287_desc *dev, bool up)
Definition: max24287.c:249
max24287_get_config_parallel
int max24287_get_config_parallel(struct max24287_desc *dev, enum max24287_parallel *par, enum max24287_speed *speed)
Definition: max24287.c:183
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
MAX24287_SGMII
@ MAX24287_SGMII
Definition: max24287.h:85
max24287_iio_desc::dev
struct max24287_desc * dev
Definition: iio_max24287.h:8
no_os_delay.h
Header file of Delay functions.
max24287_write
int max24287_write(struct max24287_desc *dev, uint8_t addr, uint16_t val)
Definition: max24287.c:112
max24287_config_serial
int max24287_config_serial(struct max24287_desc *dev, enum max24287_serial ser, enum max24287_speed speed)
Definition: max24287.c:200
MAX24287_IIO_ATTR_SER_LINK
@ MAX24287_IIO_ATTR_SER_LINK
Definition: iio_max24287.h:18
device
Definition: ad9361_util.h:69
max24287_speed
max24287_speed
Definition: max24287.h:89
no_os_calloc
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
max24287_read
int max24287_read(struct max24287_desc *dev, uint8_t addr, uint16_t *val)
Definition: max24287.c:129
iio.h
Header file of iio.
no_os_error.h
Error codes definition.
iio_attribute::name
const char * name
Definition: iio_types.h:131
MAX24287_RGMII
@ MAX24287_RGMII
Definition: max24287.h:80
max24287_iio_init_param::dev
struct max24287_desc * dev
Definition: iio_max24287.h:13
max24287_iio_desc::iio_dev
struct iio_device * iio_dev
Definition: iio_max24287.h:9
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
MAX24287_IIO_ATTR_SER_SPEED
@ MAX24287_IIO_ATTR_SER_SPEED
Definition: iio_max24287.h:19
iio_parse_value
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
max24287_desc
Definition: max24287.h:109
max24287_iio_init_param
Definition: iio_max24287.h:12
iio_format_value
int iio_format_value(char *buf, uint32_t len, enum iio_val fmt, int32_t size, int32_t *vals)
Definition: iio.c:686
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
max24287_config_parallel
int max24287_config_parallel(struct max24287_desc *dev, enum max24287_parallel par, enum max24287_speed speed)
Definition: max24287.c:162
NULL
#define NULL
Definition: wrapper.h:64
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
iio_device
Structure holding channels and attributes of a device.
Definition: iio_types.h:247
max24287_get_config_serial
int max24287_get_config_serial(struct max24287_desc *dev, enum max24287_serial *ser, enum max24287_speed *speed)
Definition: max24287.c:226
max24287_iio_init
int32_t max24287_iio_init(struct max24287_iio_desc **iiodev, struct max24287_iio_init_param *init_param)
Definition: iio_max24287.c:131
no_os_util.h
Header file of utility functions.
max24287.h
max24287_iio_remove
int32_t max24287_iio_remove(struct max24287_iio_desc *desc)
Definition: iio_max24287.c:162
iio_device::attributes
struct iio_attribute * attributes
Definition: iio_types.h:256
iio_max24287.h
max24287_iio_attr_id
max24287_iio_attr_id
Definition: iio_max24287.h:16