@ MAX14919_OUT_OFF
Definition: max14919.h:45
int max14919_init(struct max14919_desc **desc, struct max14919_init_param *init_param)
Initialize the MAX14919 device descriptor.
Definition: max14919.c:125
@ MAX14919_OUT2
Definition: max14919.h:51
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
struct no_os_gpio_init_param * in_param[MAX14919_OUT_CHANNELS]
Definition: max14919.h:60
struct no_os_gpio_desc * fault_desc
Definition: max14919.h:72
#define MAX14919_OUT_CHANNELS
Definition: max14919.h:42
int max14919_get_fault(struct max14919_desc *desc, uint8_t *fault)
Get the FAULT state of the device.
Definition: max14919.c:91
int max14919_remove(struct max14919_desc *desc)
Free resources allocated by the init function.
Definition: max14919.c:191
struct no_os_gpio_init_param * inrush_param
Definition: max14919.h:61
Structure holding te MAX14919 device descriptor.
Definition: max14919.h:69
@ MAX14919_OUT1
Definition: max14919.h:50
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:221
@ MAX14919_OUT_ON
Definition: max14919.h:46
struct no_os_gpio_desc * in_desc[MAX14919_OUT_CHANNELS]
Definition: max14919.h:70
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
max14919_out_state
Definition: max14919.h:44
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_init_param * rev_param
Definition: max14919.h:63
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
int max14919_init(struct max14919_desc **desc, struct max14919_init_param *init_param)
Initialize the MAX14919 device descriptor.
Definition: max14919.c:125
struct no_os_gpio_desc * rev_desc
Definition: max14919.h:73
int max14919_detect_rev(struct max14919_desc *desc, uint8_t *rev)
Detect reverse polarity of the current.
Definition: max14919.c:108
@ MAX14919_OUT3
Definition: max14919.h:52
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
max14919_out_chan
Definition: max14919.h:49
int max14919_detect_rev(struct max14919_desc *desc, uint8_t *rev)
Detect reverse polarity of the current.
Definition: max14919.c:108
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
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
struct no_os_gpio_desc * inrush_desc
Definition: max14919.h:71
int max14919_set_climit(struct max14919_desc *desc, bool state)
Set current limiting.
Definition: max14919.c:73
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 max14919_set_climit(struct max14919_desc *desc, bool state)
Set current limiting.
Definition: max14919.c:73
Structure holding the MAX14919 initialization parameter.
Definition: max14919.h:59
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
Header file of GPIO Interface.
enum max14919_out_state out_state[MAX14919_OUT_CHANNELS]
Definition: max14919.h:74
int max14919_set_out(struct max14919_desc *desc, enum max14919_out_state *state)
Set the OUT channels state.
Definition: max14919.c:43
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:91
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:147
struct no_os_gpio_init_param * fault_param
Definition: max14919.h:62
@ MAX14919_OUT4
Definition: max14919.h:53
int max14919_remove(struct max14919_desc *desc)
Free resources allocated by the init function.
Definition: max14919.c:191
int max14919_set_out(struct max14919_desc *desc, enum max14919_out_state *state)
Set the OUT channels state.
Definition: max14919.c:43
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:75