Go to the documentation of this file.
33 #ifndef __SELF_TEST_H__
34 #define __SELF_TEST_H__
int rms_adc_values_read(struct stout *stout, struct rms_adc_values *rms)
saves the current and voltage values in rms_adc structure
Definition: supply.c:351
int self_test_startup(struct stout *stout, struct rms_adc_values *rms_adc_values)
Startup test.
Definition: self_test.c:465
int self_test_rcd_running(struct stout *stout, uint16_t step, enum state_machine_events_e *event)
Running test for RCD.
Definition: self_test.c:286
@ INTF_RELAY_ERR
Definition: state_machine.h:75
int relay_close(struct no_os_gpio_desc *relay)
Close relay command.
Definition: relay.c:91
state_machine_events_e
State machine event.
Definition: state_machine.h:106
struct ade9113_dev * ade9113
Definition: state_machine.h:187
int self_test_relay_closed(struct stout *stout, int32_t v2)
Running test for relay.
Definition: self_test.c:386
void reset_rcd_flag_state(void)
Reset RCD flag value.
Definition: rcd.c:79
int self_test_supply(struct stout *stout, struct rms_adc_values *rms_adc_values)
Startup test for power supply.
Definition: self_test.c:68
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
int get_zero_cross_flag_state(void)
Get zero crossing flag value.
Definition: supply.c:71
Header file of Delay functions.
int relay_open(struct no_os_gpio_desc *relay)
Open relay command.
Definition: relay.c:81
int32_t v2_val
Definition: state_machine.h:201
Structure for Stout machine.
Definition: state_machine.h:185
uint8_t grid
Definition: state_machine.h:211
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:117
#define V2_CLOSED_LIMIT
Definition: common_data.h:98
Power supply phase interface file.
struct no_os_gpio_desc * gpio_rcdac
Definition: state_machine.h:219
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:115
int self_test_relay_closed(struct stout *stout, int32_t v2)
Running test for relay.
Definition: self_test.c:386
#define VIN_HIGH_LIMIT_2
Definition: common_data.h:86
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:126
#define pr_debug(fmt, args...)
Definition: no_os_print_log.h:129
int self_test_pe_upstream(struct stout *stout)
int32_t v2_rms
Definition: state_machine.h:231
int self_test_rcd_running(struct stout *stout, uint16_t step, enum state_machine_events_e *event)
Running test for RCD.
Definition: self_test.c:286
GPIO interrupt phase interface file.
enum interface_err_status_e err_status
Definition: state_machine.h:221
struct no_os_gpio_desc * gpio_rcm_test
Definition: state_machine.h:217
int relay_state(struct no_os_gpio_desc *relay, uint8_t *state)
Relay command line state.
Definition: relay.c:102
Definition: state_machine.h:224
@ S_M_RCD_TEST_TRIGGERED
Definition: state_machine.h:120
User interface interface file.
@ INTF_NO_ERR
Definition: state_machine.h:73
@ S_M_RCD_TEST_FAIL
Definition: state_machine.h:124
int self_test_relay_stuck(struct stout *stout)
Relay test.
Definition: self_test.c:504
int get_gpio_opto_out2_flag_state(void)
Get GPIO Opto_out2 flag value.
Definition: inter.c:144
#define VIN_HIGH_LIMIT
Definition: common_data.h:82
struct no_os_irq_ctrl_desc * irq_ctrl
Definition: ade9113.h:366
int self_test_rcd(struct stout *stout)
Startup test for RCD.
Definition: self_test.c:203
uint32_t get_pwm_high_val(void)
Get PWM HIGH value.
Definition: pilot.c:146
@ INTF_INPUT_V_ERR_U
Definition: state_machine.h:79
struct no_os_gpio_desc * relay
Definition: state_machine.h:189
@ INTF_INIT_RCD_ERROR
Definition: state_machine.h:85
STOUT state machine header file.
enum no_os_irq_event event
Definition: no_os_irq.h:148
#define VIN_LOW_LIMIT
Definition: common_data.h:81
uint32_t pilot_convert_to_mv(uint32_t value)
Compute ADC voltage value.
Definition: pilot.c:341
Self-tests interface file.
void pilot_pwm_timer_set_duty_cycle(struct stout *stout, unsigned int duty_cycle)
Set PMW duty cycle.
Definition: pilot.c:271
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
int self_test_startup(struct stout *stout, struct rms_adc_values *rms_adc_values)
Startup test.
Definition: self_test.c:465
Pilot phase interface file.
int self_test_relay_stuck(struct stout *stout)
Relay test.
Definition: self_test.c:504
int32_t v1_rms
Definition: state_machine.h:229
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:181
#define VIN_LOW_LIMIT_2
Definition: common_data.h:85
@ INTF_INPUT_V_ERR
Definition: state_machine.h:77
Header file of utility functions.
uint32_t get_pwm_low_val(void)
Get PWM LOW value.
Definition: pilot.c:136
int32_t no_os_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable specific interrupt.
Definition: no_os_irq.c:198
int self_test_supply(struct stout *stout, struct rms_adc_values *rms_adc_values)
Startup test for power supply.
Definition: self_test.c:68
@ INTF_PILOT_ERROR
Definition: state_machine.h:87
int get_gpio_opto_out1_flag_state(void)
Get GPIO Opto_out1 flag value.
Definition: inter.c:124
void reset_zero_cross_flag_state(void)
Reset zero crossing flag value.
Definition: supply.c:81
@ S_M_RCD_TEST_COMPLETED
Definition: state_machine.h:122
int self_test_rcd(struct stout *stout)
Startup test for RCD.
Definition: self_test.c:203
struct no_os_gpio_desc * gpio_rcddc
Definition: state_machine.h:218