no-OS
iio_adin1300.h
Go to the documentation of this file.
1 #ifndef IIO_ADIN1300_H
2 #define IIO_ADIN1300_H
3 
4 #include "iio.h"
5 #include "adin1300.h"
6 
8  struct adin1300_desc *dev;
9  struct iio_device *iio_dev;
10 };
11 
13  struct adin1300_desc *dev;
14 };
15 
20 };
21 
22 int32_t adin1300_iio_init(struct adin1300_iio_desc **iio_dev,
24 int32_t adin1300_iio_remove(struct adin1300_iio_desc *desc);
25 
26 #endif
adin1300_iio_init_param
Definition: iio_adin1300.h:12
no_os_alloc.h
END_ATTRIBUTES_ARRAY
#define END_ATTRIBUTES_ARRAY
Definition: iio_types.h:116
iio_adin1300.h
IIO_VAL_INT
@ IIO_VAL_INT
Definition: iio_types.h:50
ADIN1300_MII_CONTROL
#define ADIN1300_MII_CONTROL
Definition: adin1300.h:8
ADIN1300_AUTONEG_EN_MASK
#define ADIN1300_AUTONEG_EN_MASK
Definition: adin1300.h:11
iio_ch_info
Structure holding channel attributess.
Definition: iio_types.h:103
adin1300_link_is_up
bool adin1300_link_is_up(struct adin1300_desc *dev)
Definition: adin1300.c:246
ADIN1300_IIO_ATTR_AUTONEGOTIATE
@ ADIN1300_IIO_ATTR_AUTONEGOTIATE
Definition: iio_adin1300.h:19
ADIN1300_IIO_ATTR_LINK
@ ADIN1300_IIO_ATTR_LINK
Definition: iio_adin1300.h:17
no_os_delay.h
Header file of Delay functions.
adin1300_write
int adin1300_write(struct adin1300_desc *dev, uint32_t addr, uint16_t val)
Definition: adin1300.c:120
device
Definition: ad9361_util.h:69
adin1300_resolved_speed
enum adin1300_speed adin1300_resolved_speed(struct adin1300_desc *dev)
Definition: adin1300.c:258
adin1300_iio_init
int32_t adin1300_iio_init(struct adin1300_iio_desc **iio_dev, struct adin1300_iio_init_param *init_param)
Definition: iio_adin1300.c:145
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
ADIN1300_LINK_EN_MASK
#define ADIN1300_LINK_EN_MASK
Definition: adin1300.h:50
ADIN1300_1000_BASE_T_FULLDUPLEX
@ ADIN1300_1000_BASE_T_FULLDUPLEX
Definition: adin1300.h:119
adin1300_iio_remove
int32_t adin1300_iio_remove(struct adin1300_iio_desc *iiodev)
Definition: iio_adin1300.c:176
adin1300_autoneg
int adin1300_autoneg(struct adin1300_desc *dev, bool on)
Definition: adin1300.c:239
iio.h
Header file of iio.
no_os_error.h
Error codes definition.
iio_attribute::name
const char * name
Definition: iio_types.h:131
adin1300_read
int adin1300_read(struct adin1300_desc *dev, uint32_t addr, uint16_t *val)
Definition: adin1300.c:126
ADIN1300_IIO_ATTR_SPEED
@ ADIN1300_IIO_ATTR_SPEED
Definition: iio_adin1300.h:18
iio_attribute
Structure holding pointers to show and store functions.
Definition: iio_types.h:129
adin1300_iio_remove
int32_t adin1300_iio_remove(struct adin1300_iio_desc *desc)
Definition: iio_adin1300.c:176
iio_parse_value
int32_t iio_parse_value(char *buf, enum iio_val fmt, int32_t *val, int32_t *val2)
Definition: iio.c:630
adin1300_iio_desc::iio_dev
struct iio_device * iio_dev
Definition: iio_adin1300.h:9
adin1300_desc
Definition: adin1300.h:157
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_field_get
uint32_t no_os_field_get(uint32_t mask, uint32_t word)
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
adin1300_iio_init
int32_t adin1300_iio_init(struct adin1300_iio_desc **iiodev, struct adin1300_iio_init_param *init_param)
Definition: iio_adin1300.c:145
adin1300_iio_attr_id
adin1300_iio_attr_id
Definition: iio_adin1300.h:16
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
adin1300_write_bits
int adin1300_write_bits(struct adin1300_desc *dev, uint32_t addr, uint16_t val, uint16_t bitmask)
Definition: adin1300.c:132
adin1300_iio_init_param::dev
struct adin1300_desc * dev
Definition: iio_adin1300.h:13
adin1300_iio_desc::dev
struct adin1300_desc * dev
Definition: iio_adin1300.h:8
adin1300.h
adin1300_config_speed
int adin1300_config_speed(struct adin1300_desc *dev, enum adin1300_speed speed_cap)
Definition: adin1300.c:194
adin1300_iio_desc
Definition: iio_adin1300.h:7
no_os_util.h
Header file of utility functions.
ADIN1300_PHY_CTRL_3
#define ADIN1300_PHY_CTRL_3
Definition: adin1300.h:49
adin1300_speed
adin1300_speed
Definition: adin1300.h:113
iio_device::attributes
struct iio_attribute * attributes
Definition: iio_types.h:256