@ MAX14919_OUT_OFF
Definition: max14919.h:51
int max14919_init(struct max14919_desc **desc, struct max14919_init_param *init_param)
Initialize the MAX14919 device descriptor.
Definition: max14919.c:131
@ MAX14919_OUT2
Definition: max14919.h:57
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
struct no_os_gpio_init_param * in_param[MAX14919_OUT_CHANNELS]
Definition: max14919.h:66
struct no_os_gpio_desc * fault_desc
Definition: max14919.h:78
#define MAX14919_OUT_CHANNELS
Definition: max14919.h:48
int max14919_get_fault(struct max14919_desc *desc, uint8_t *fault)
Get the FAULT state of the device.
Definition: max14919.c:97
int max14919_remove(struct max14919_desc *desc)
Free resources allocated by the init function.
Definition: max14919.c:197
struct no_os_gpio_init_param * inrush_param
Definition: max14919.h:67
Structure holding te MAX14919 device descriptor.
Definition: max14919.h:75
@ MAX14919_OUT1
Definition: max14919.h:56
int32_t no_os_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: no_os_gpio.c:227
@ MAX14919_OUT_ON
Definition: max14919.h:52
struct no_os_gpio_desc * in_desc[MAX14919_OUT_CHANNELS]
Definition: max14919.h:76
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:123
max14919_out_state
Definition: max14919.h:50
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:60
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:130
struct no_os_gpio_init_param * rev_param
Definition: max14919.h:69
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:121
int max14919_init(struct max14919_desc **desc, struct max14919_init_param *init_param)
Initialize the MAX14919 device descriptor.
Definition: max14919.c:131
struct no_os_gpio_desc * rev_desc
Definition: max14919.h:79
int max14919_detect_rev(struct max14919_desc *desc, uint8_t *rev)
Detect reverse polarity of the current.
Definition: max14919.c:114
@ MAX14919_OUT3
Definition: max14919.h:58
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:110
max14919_out_chan
Definition: max14919.h:55
int max14919_detect_rev(struct max14919_desc *desc, uint8_t *rev)
Detect reverse polarity of the current.
Definition: max14919.c:114
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
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:55
struct no_os_gpio_desc * inrush_desc
Definition: max14919.h:77
int max14919_set_climit(struct max14919_desc *desc, bool state)
Set current limiting.
Definition: max14919.c:79
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:75
int max14919_set_climit(struct max14919_desc *desc, bool state)
Set current limiting.
Definition: max14919.c:79
Structure holding the MAX14919 initialization parameter.
Definition: max14919.h:65
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:203
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
Header file of GPIO Interface.
enum max14919_out_state out_state[MAX14919_OUT_CHANNELS]
Definition: max14919.h:80
int max14919_set_out(struct max14919_desc *desc, enum max14919_out_state *state)
Set the OUT channels state.
Definition: max14919.c:49
Header file of MAX14919 Driver.
int max14919_get_fault(struct max14919_desc *desc, uint8_t *fault)
Get the FAULT state of the device.
Definition: max14919.c:97
Header file of utility functions.
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:153
struct no_os_gpio_init_param * fault_param
Definition: max14919.h:68
@ MAX14919_OUT4
Definition: max14919.h:59
int max14919_remove(struct max14919_desc *desc)
Free resources allocated by the init function.
Definition: max14919.c:197
int max14919_set_out(struct max14919_desc *desc, enum max14919_out_state *state)
Set the OUT channels state.
Definition: max14919.c:49
int32_t no_os_gpio_get_optional(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Get the value of an optional GPIO.
Definition: no_os_gpio.c:81