no-OS
|
STOUT state machine header file. More...
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | stout |
Structure for Stout machine. More... | |
struct | rms_adc_values |
Macros | |
#define | FIRMWARE_VERSION ("v30923") |
#define | LED_NO (4u) |
Functions | |
int | state_machine () |
State machine main execution. More... | |
enum state_machine_events_e | state_machine_det_event_cp (struct stout *stout, enum state_machine_events_e event_in) |
Determine next state based on CP measurements and previous events. More... | |
enum state_machine_events_e | state_machine_det_event_supply (struct stout *stout, enum state_machine_events_e event_in) |
Determine next state based on supply measurements and previous events. More... | |
enum state_machine_events_e | state_machine_det_event_temperature (struct stout *stout, enum state_machine_events_e event_in) |
Determine next state based on temperature measurements and previous events. More... | |
uint16_t | get_action (void) |
Get take action flag. More... | |
void | set_action_flag (void) |
Set take action flag. More... | |
void | reset_action_flag (void) |
Reset take action flag. More... | |
void | inc_action_flag (void) |
Increment take action flag. More... | |
void | start_charging (void) |
Signal that EV starts charging. More... | |
void | stop_charging (void) |
Signal that EV stops charging. More... | |
uint8_t | car_is_charging (void) |
Get charging state. More... | |
STOUT state machine header file.
Copyright (c) 2023 Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define FIRMWARE_VERSION ("v30923") |
#define LED_NO (4u) |
enum charger_state_e |
State machine event.
uint8_t car_is_charging | ( | void | ) |
Get charging state.
Get charging state
uint16_t get_action | ( | void | ) |
Get take action flag.
Get take action flag
void inc_action_flag | ( | void | ) |
Increment take action flag.
Increment take action flag
void reset_action_flag | ( | void | ) |
Reset take action flag.
Reset take action flag
void set_action_flag | ( | void | ) |
Set take action flag.
Set take action flag
void start_charging | ( | void | ) |
Signal that EV starts charging.
Signal that EV starts charging
int state_machine | ( | ) |
State machine main execution.
Main routine
enum state_machine_events_e state_machine_det_event_cp | ( | struct stout * | stout, |
enum state_machine_events_e | event_in | ||
) |
Determine next state based on CP measurements and previous events.
Determine next state, CP measurements
stout | - state machine descriptor |
event_in | - previous event |
enum state_machine_events_e state_machine_det_event_supply | ( | struct stout * | stout, |
enum state_machine_events_e | event_in | ||
) |
Determine next state based on supply measurements and previous events.
Determine next state, supply measurements
stout | - state machine descriptor |
event_in | - previous event |
enum state_machine_events_e state_machine_det_event_temperature | ( | struct stout * | stout, |
enum state_machine_events_e | event_in | ||
) |
Determine next state based on temperature measurements and previous events.
Determine next state, temperature measurements
stout | - state machine descriptor |
event_in | - previous event |
void stop_charging | ( | void | ) |
Signal that EV stops charging.
Signal that EV stops charging