struct no_os_gpio_init_param * doilvl_init_param
Definition: max14914.h:66
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
struct no_os_gpio_desc * di_en_gpio
Definition: max14914.h:56
@ MAX14914_DIGITAL_OUTPUT_HIGH_SIDE
Definition: max14914.h:43
@ MAX14914_DIGITAL_OUTPUT_LOW_SIDE
Definition: max14914.h:44
enum max14914_state current_state
Definition: max14914.h:53
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
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
int32_t no_os_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: no_os_gpio.c:124
struct no_os_gpio_desc * fault_gpio
Definition: max14914.h:54
@ MAX14914_DIGITAL_OUTPUT_PP
Definition: max14914.h:42
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
struct no_os_gpio_init_param * di_en_init_param
Definition: max14914.h:67
struct no_os_gpio_init_param * in_init_param
Definition: max14914.h:68
struct no_os_gpio_desc * in_gpio
Definition: max14914.h:57
struct no_os_gpio_init_param * fault_init_param
Definition: max14914.h:65
Structure holding the MAX14914 initialization parameter.
Definition: max14914.h:64
struct no_os_gpio_init_param * pp_init_param
Definition: max14914.h:69
@ MAX14914_DIGITAL_INPUT_IEC_TYPE2
Definition: max14914.h:46
int max14914_init(struct max14914_desc **desc, struct max14914_init_param *init_param)
Initialize the MAX14914 device.
Definition: max14914.c:124
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
int max14914_remove(struct max14914_desc *desc)
Free resources allocated by the init function.
Definition: max14914.c:204
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
max14914_state
Definition: max14914.h:41
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
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
int max14914_set_state(struct max14914_desc *desc, enum max14914_state state)
Set the state of the MAX14914.
Definition: max14914.c:46
Header file of MAX14914 Driver.
struct no_os_gpio_desc * doilvl_gpio
Definition: max14914.h:55
int32_t no_os_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: no_os_gpio.c:197
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
Structure holding the MAX14914 device descriptor.
Definition: max14914.h:52
struct no_os_gpio_desc * pp_gpio
Definition: max14914.h:58
Header file of GPIO Interface.
Header file of utility functions.
@ MAX14914_DIGITAL_INPUT_IEC_TYPE1_3
Definition: max14914.h:45
int max14914_init(struct max14914_desc **desc, struct max14914_init_param *init_param)
Initialize the MAX14914 device.
Definition: max14914.c:124
int32_t no_os_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: no_os_gpio.c:147
int max14914_set_state(struct max14914_desc *desc, enum max14914_state state)
Set the state of the MAX14914.
Definition: max14914.c:46
int max14914_remove(struct max14914_desc *desc)
Free resources allocated by the init function.
Definition: max14914.c:204