Go to the documentation of this file.
44 #define MAX149X6_FRAME_SIZE 2
47 #define MAX149X6_CHIP_ADDR_MASK NO_OS_GENMASK(7, 6)
48 #define MAX149X6_ADDR_MASK NO_OS_GENMASK(4, 1)
49 #define MAX149X6_RW_MASK NO_OS_BIT(0)
struct no_os_gpio_desc * ready_gpio
Definition: max149x6-base.h:72
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
int max149x6_reg_read(struct max149x6_desc *desc, uint32_t addr, uint32_t *val)
Read the value of a device register.
Definition: max149x6-base.c:126
uint32_t chip_address
Definition: max149x6-base.h:68
int max149x6_reg_write(struct max149x6_desc *, uint32_t, uint32_t)
Write the value of a device register.
Definition: max149x6-base.c:98
int max149x6_reg_read(struct max149x6_desc *, uint32_t, uint32_t *)
Read the value of a device register.
Definition: max149x6-base.c:126
Header file of MAX149X6 Base Driver.
Device descriptor for MAX149X6.
Definition: max149x6-base.h:67
Header file of SPI Interface.
#define MAX149X6_FRAME_SIZE
Definition: max149x6-base.h:44
Definition: no_os_spi.h:100
struct no_os_gpio_init_param * fault_gpio_param
Definition: max149x6-base.h:58
bool crc_en
Definition: max149x6-base.h:61
int max149x6_reg_update(struct max149x6_desc *desc, uint32_t addr, uint32_t mask, uint32_t val)
Update the value of a device register (read/write sequence).
Definition: max149x6-base.c:172
bool crc_en
Definition: max149x6-base.h:75
struct no_os_gpio_desc * synch_gpio
Definition: max149x6-base.h:73
uint8_t * tx_buff
Definition: no_os_spi.h:102
struct no_os_spi_init_param * comm_param
Definition: max149x6-base.h:56
struct no_os_gpio_desc * en_gpio
Definition: max149x6-base.h:70
uint32_t no_os_field_prep(uint32_t mask, uint32_t val)
int max149x6_reg_write(struct max149x6_desc *desc, uint32_t addr, uint32_t val)
Write the value of a device register.
Definition: max149x6-base.c:98
#define MAX149X6_RW_MASK
Definition: max149x6-base.h:49
struct no_os_gpio_init_param * synch_gpio_param
Definition: max149x6-base.h:60
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
struct no_os_gpio_init_param * ready_gpio_param
Definition: max149x6-base.h:59
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
struct no_os_gpio_init_param * en_gpio_param
Definition: max149x6-base.h:57
int32_t no_os_spi_transfer(struct no_os_spi_desc *desc, struct no_os_spi_msg *msgs, uint32_t len)
Iterate over head list and send all spi messages.
Definition: no_os_spi.c:185
uint32_t bytes_number
Definition: no_os_spi.h:106
int max149x6_reg_update(struct max149x6_desc *, uint32_t, uint32_t, uint32_t)
Update the value of a device register (read/write sequence).
Definition: max149x6-base.c:172
uint8_t buff[MAX149X6_FRAME_SIZE+1]
Definition: max149x6-base.h:74
#define MAX149X6_CHIP_ADDR_MASK
Definition: max149x6-base.h:47
uint32_t chip_address
Definition: max149x6-base.h:55
#define MAX149X6_ADDR_MASK
Definition: max149x6-base.h:48
struct no_os_gpio_desc * fault_gpio
Definition: max149x6-base.h:71
struct no_os_spi_desc * comm_desc
Definition: max149x6-base.h:69
Header file of GPIO Interface.
Initialization parameter for the MAX149X6 device.
Definition: max149x6-base.h:54
Header file of utility functions.
Error macro definition for ARM Compiler.
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140