foxBMS - Unit Tests
1.5.0
The foxBMS Unit Tests API Documentation
|
Header for the driver of the fake AFE driver. More...
Go to the source code of this file.
Data Structures | |
struct | FAKE_DATABASE_ENTRIES_s |
struct | FAKE_STATE_s |
Functions | |
STD_RETURN_TYPE_e | FAKE_Initialize (void) |
initialize driver More... | |
bool | FAKE_IsFirstMeasurementCycleFinished (FAKE_STATE_s *pFakeState) |
return whether the first measurement cycle is finished More... | |
STD_RETURN_TYPE_e | FAKE_TriggerAfe (FAKE_STATE_s *pFakeState) |
Trigger function for the driver, called to advance the state machine. More... | |
bool | TEST_FAKE_CheckMultipleCalls (FAKE_STATE_s *pFakeState) |
void | TEST_FAKE_SetFirstMeasurementCycleFinished (FAKE_STATE_s *pFakeState) |
void | TEST_FAKE_SetState (FAKE_STATE_s *pFakeState, FAKE_FSM_STATES_e nextState, FAKE_FSM_SUBSTATES_e nextSubstate, uint16_t idleTime) |
STD_RETURN_TYPE_e | TEST_FAKE_SaveFakeVoltageMeasurementData (FAKE_STATE_s *pFakeState) |
STD_RETURN_TYPE_e | TEST_FAKE_SaveFakeTemperatureMeasurementData (FAKE_STATE_s *pFakeState) |
Variables | |
FAKE_STATE_s | fake_state |
Header for the driver of the fake AFE driver.
SPDX-License-Identifier: BSD-3-Clause
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 THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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.
We kindly request you to use one or more of the following phrases to refer to foxBMS in your hardware, software, documentation or advertising materials:
Definition in file debug_default.h.
enum FAKE_FSM_STATES_e |
States of the state machine
Definition at line 70 of file debug_default.h.
enum FAKE_FSM_SUBSTATES_e |
Substates of the state machine
Definition at line 80 of file debug_default.h.
STD_RETURN_TYPE_e FAKE_Initialize | ( | void | ) |
initialize driver
Definition at line 520 of file debug_default.c.
bool FAKE_IsFirstMeasurementCycleFinished | ( | FAKE_STATE_s * | pFakeState | ) |
return whether the first measurement cycle is finished
pFakeState | current state of the fake driver |
Definition at line 524 of file debug_default.c.
STD_RETURN_TYPE_e FAKE_TriggerAfe | ( | FAKE_STATE_s * | pFakeState | ) |
Trigger function for the driver, called to advance the state machine.
pFakeState | current state of the fake driver |
Definition at line 533 of file debug_default.c.
bool TEST_FAKE_CheckMultipleCalls | ( | FAKE_STATE_s * | pFakeState | ) |
STD_RETURN_TYPE_e TEST_FAKE_SaveFakeTemperatureMeasurementData | ( | FAKE_STATE_s * | pFakeState | ) |
STD_RETURN_TYPE_e TEST_FAKE_SaveFakeVoltageMeasurementData | ( | FAKE_STATE_s * | pFakeState | ) |
void TEST_FAKE_SetFirstMeasurementCycleFinished | ( | FAKE_STATE_s * | pFakeState | ) |
void TEST_FAKE_SetState | ( | FAKE_STATE_s * | pFakeState, |
FAKE_FSM_STATES_e | nextState, | ||
FAKE_FSM_SUBSTATES_e | nextSubstate, | ||
uint16_t | idleTime | ||
) |
|
extern |
state of the fake state machine
local instance of the driver-state
Definition at line 117 of file debug_default.c.