no-OS
interface.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __INTERFACE_H__
34 #define __INTERFACE_H__
35 
36 /******************************************************************************/
37 /***************************** Include Files **********************************/
38 /******************************************************************************/
39 #include "state_machine.h"
40 #include "parameters.h"
41 #include "no_os_gpio.h"
42 
43 /******************************************************************************/
44 /************************* Functions Declarations******************************/
45 /******************************************************************************/
47 int interface_init(struct no_os_gpio_desc **gpio_led_desc);
48 
50 int interface_led_on(struct no_os_gpio_desc *gpio_led_desc);
51 
53 int interface_led_off(struct no_os_gpio_desc *gpio_led_desc);
54 
56 int interface_toggle_led(struct no_os_gpio_desc *gpio_led_desc);
57 
59 int interface_disp(struct stout *stout);
60 
62 int interface_blink_time(struct stout *stout);
63 
64 #endif /* __INTERFACE_H__ */
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:79
interface_blink_time
int interface_blink_time(struct stout *stout)
Get interface blink time (multimple of 20ms)
Definition: interface.c:202
INTF_RELAY_ERR
@ INTF_RELAY_ERR
Definition: state_machine.h:75
interface_led_on
int interface_led_on(struct no_os_gpio_desc *gpio_led_desc)
Turn LED on.
Definition: interface.c:82
ade9113_gpio_led1_ip
struct no_os_gpio_init_param ade9113_gpio_led1_ip
Definition: common_data.c:96
stout::gpio_led
struct no_os_gpio_desc * gpio_led[LED_NO]
Definition: state_machine.h:191
no_os_gpio_get_value
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
no_os_delay.h
Header file of Delay functions.
stout
Structure for Stout machine.
Definition: state_machine.h:185
NO_OS_GPIO_HIGH
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
no_os_print_log.h
Print messages helpers.
interface_led_off
int interface_led_off(struct no_os_gpio_desc *gpio_led_desc)
Turn LED off.
Definition: interface.c:92
interface_blink_time
int interface_blink_time(struct stout *stout)
Get interface blink time (multimple of 20ms)
Definition: interface.c:202
interface_led_on
int interface_led_on(struct no_os_gpio_desc *gpio_led_desc)
Turn LED on.
Definition: interface.c:82
interface_led_off
int interface_led_off(struct no_os_gpio_desc *gpio_led_desc)
Turn LED off.
Definition: interface.c:92
INTF_INPUT_V_ERR_O
@ INTF_INPUT_V_ERR_O
Definition: state_machine.h:81
ade9113_gpio_led4_ip
struct no_os_gpio_init_param ade9113_gpio_led4_ip
Definition: common_data.c:144
NO_OS_GPIO_LOW
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
INTF_TEMPERATURE_ERR
@ INTF_TEMPERATURE_ERR
Definition: state_machine.h:93
ade9113_gpio_led3_ip
struct no_os_gpio_init_param ade9113_gpio_led3_ip
Definition: common_data.c:136
stout::err_status
enum interface_err_status_e err_status
Definition: state_machine.h:221
INTF_RCD_ERROR
@ INTF_RCD_ERROR
Definition: state_machine.h:83
STATE_FAULT
@ STATE_FAULT
Definition: state_machine.h:64
interface.h
User interface interface file.
STATE_B
@ STATE_B
Definition: state_machine.h:59
stout::current_state
enum charger_state_e current_state
Definition: state_machine.h:193
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
INTF_INPUT_V_ERR_U
@ INTF_INPUT_V_ERR_U
Definition: state_machine.h:79
INTF_INIT_RCD_ERROR
@ INTF_INIT_RCD_ERROR
Definition: state_machine.h:85
state_machine.h
STOUT state machine header file.
interface_toggle_led
int interface_toggle_led(struct no_os_gpio_desc *gpio_led_desc)
Toggle LED.
Definition: interface.c:102
interface_toggle_led
int interface_toggle_led(struct no_os_gpio_desc *gpio_led_desc)
Toggle LED.
Definition: interface.c:102
interface_init
int interface_init(struct no_os_gpio_desc **gpio_led_desc)
Interface initialization routines.
Definition: interface.c:52
ade9113_gpio_led2_ip
struct no_os_gpio_init_param ade9113_gpio_led2_ip
Definition: common_data.c:80
interface_disp
int interface_disp(struct stout *stout)
Display error code.
Definition: interface.c:124
interface_disp
int interface_disp(struct stout *stout)
Display error code.
Definition: interface.c:124
no_os_gpio_set_value
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
@ STATE_C
Definition: state_machine.h:60
STATE_D
@ STATE_D
Definition: state_machine.h:61
interface_init
int interface_init(struct no_os_gpio_desc **gpio_led_desc)
Interface initialization routines.
Definition: interface.c:52
no_os_gpio.h
Header file of GPIO Interface.
LED_NO
#define LED_NO
Definition: state_machine.h:46
INTF_DIODE_ERR
@ INTF_DIODE_ERR
Definition: state_machine.h:89
no_os_gpio_direction_output
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
@ INTF_PILOT_ERROR
Definition: state_machine.h:87
no_os_gpio_get_optional
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