Go to the documentation of this file.
33 #ifndef __INTERFACE_H__
34 #define __INTERFACE_H__
40 #include "parameters.h"
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
int interface_blink_time(struct stout *stout)
Get interface blink time (multimple of 20ms)
Definition: interface.c:202
@ INTF_RELAY_ERR
Definition: state_machine.h:75
int interface_led_on(struct no_os_gpio_desc *gpio_led_desc)
Turn LED on.
Definition: interface.c:82
struct no_os_gpio_init_param ade9113_gpio_led1_ip
Definition: common_data.c:96
struct no_os_gpio_desc * gpio_led[LED_NO]
Definition: state_machine.h:191
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
Header file of Delay functions.
Structure for Stout machine.
Definition: state_machine.h:185
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
int interface_led_off(struct no_os_gpio_desc *gpio_led_desc)
Turn LED off.
Definition: interface.c:92
int interface_blink_time(struct stout *stout)
Get interface blink time (multimple of 20ms)
Definition: interface.c:202
int interface_led_on(struct no_os_gpio_desc *gpio_led_desc)
Turn LED on.
Definition: interface.c:82
int interface_led_off(struct no_os_gpio_desc *gpio_led_desc)
Turn LED off.
Definition: interface.c:92
@ INTF_INPUT_V_ERR_O
Definition: state_machine.h:81
struct no_os_gpio_init_param ade9113_gpio_led4_ip
Definition: common_data.c:144
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
@ INTF_TEMPERATURE_ERR
Definition: state_machine.h:93
struct no_os_gpio_init_param ade9113_gpio_led3_ip
Definition: common_data.c:136
enum interface_err_status_e err_status
Definition: state_machine.h:221
@ INTF_RCD_ERROR
Definition: state_machine.h:83
@ STATE_FAULT
Definition: state_machine.h:64
User interface interface file.
@ STATE_B
Definition: state_machine.h:59
enum charger_state_e current_state
Definition: state_machine.h:193
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
@ INTF_INPUT_V_ERR_U
Definition: state_machine.h:79
@ INTF_INIT_RCD_ERROR
Definition: state_machine.h:85
STOUT state machine header file.
int interface_toggle_led(struct no_os_gpio_desc *gpio_led_desc)
Toggle LED.
Definition: interface.c:102
int interface_toggle_led(struct no_os_gpio_desc *gpio_led_desc)
Toggle LED.
Definition: interface.c:102
int interface_init(struct no_os_gpio_desc **gpio_led_desc)
Interface initialization routines.
Definition: interface.c:52
struct no_os_gpio_init_param ade9113_gpio_led2_ip
Definition: common_data.c:80
int interface_disp(struct stout *stout)
Display error code.
Definition: interface.c:124
int interface_disp(struct stout *stout)
Display error code.
Definition: interface.c:124
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
@ STATE_C
Definition: state_machine.h:60
@ STATE_D
Definition: state_machine.h:61
int interface_init(struct no_os_gpio_desc **gpio_led_desc)
Interface initialization routines.
Definition: interface.c:52
Header file of GPIO Interface.
#define LED_NO
Definition: state_machine.h:46
@ INTF_DIODE_ERR
Definition: state_machine.h:89
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
@ INTF_PILOT_ERROR
Definition: state_machine.h:87
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