foxBMS - Unit Tests  1.4.0
The foxBMS Unit Tests API Documentation
State handler functions for #MXM_41BStateMachine()

Functions

static void MXM_41BStateHandlerInit (MXM_41B_INSTANCE_s *pInstance)
 init state handler More...
 
static void MXM_41BStateHandlerGetVersion (MXM_41B_INSTANCE_s *pInstance)
 state handler for "get version" More...
 
static void MXM_41BStateHandlerIdle (MXM_41B_INSTANCE_s *pInstance)
 state handler for "idle" More...
 
static void MXM_41BStateHandlerWriteConfAndIntRegister (MXM_41B_INSTANCE_s *pInstance)
 state handler for "write conf and int register" More...
 
static void MXM_41BStateHandlerReadStatusRegister (MXM_41B_INSTANCE_s *pInstance)
 state handler for "read status register" More...
 
static void MXM_41BStateHandlerUartTransaction (MXM_41B_INSTANCE_s *pInstance)
 state handler for "uart transaction" More...
 
static void MXM_41BStateHandlerCheckFmea (MXM_41B_INSTANCE_s *pInstance)
 state handler for "check fmea" More...
 
static void MXM_41BStateHandlerClearReceiveBuffer (MXM_41B_INSTANCE_s *pInstance)
 state handler for "clear receive buffer" More...
 
static void MXM_41BStateHandlerClearTransmitBuffer (MXM_41B_INSTANCE_s *pInstance)
 state handler for "clear transmit buffer" More...
 

Detailed Description

Function Documentation

◆ MXM_41BStateHandlerCheckFmea()

static void MXM_41BStateHandlerCheckFmea ( MXM_41B_INSTANCE_s pInstance)
static

state handler for "check fmea"

This functions contains all states for MXM_STATEMACH_41B_CHECK_FMEA.

Parameters
[in,out]pInstancepointer to the state-struct

Definition at line 722 of file mxm_17841b.c.

Here is the call graph for this function:

◆ MXM_41BStateHandlerClearReceiveBuffer()

static void MXM_41BStateHandlerClearReceiveBuffer ( MXM_41B_INSTANCE_s pInstance)
static

state handler for "clear receive buffer"

This functions contains all states for MXM_STATEMACH_41B_CLEAR_RECEIVE_BUFFER.

Parameters
[in,out]pInstancepointer to the state-struct

Definition at line 755 of file mxm_17841b.c.

Here is the call graph for this function:

◆ MXM_41BStateHandlerClearTransmitBuffer()

static void MXM_41BStateHandlerClearTransmitBuffer ( MXM_41B_INSTANCE_s pInstance)
static

state handler for "clear transmit buffer"

This functions contains all states for MXM_STATEMACH_41B_CLEAR_TRANSMIT_BUFFER.

Parameters
[in,out]pInstancepointer to the state-struct

Definition at line 769 of file mxm_17841b.c.

Here is the call graph for this function:

◆ MXM_41BStateHandlerGetVersion()

static void MXM_41BStateHandlerGetVersion ( MXM_41B_INSTANCE_s pInstance)
static

state handler for "get version"

This function contains all states for MXM_STATEMACH_41B_GET_VERSION.

Parameters
[in,out]pInstancepointer to the state-struct

Definition at line 511 of file mxm_17841b.c.

Here is the call graph for this function:

◆ MXM_41BStateHandlerIdle()

static void MXM_41BStateHandlerIdle ( MXM_41B_INSTANCE_s pInstance)
static

state handler for "idle"

This function contains all states for MXM_STATEMACH_41B_IDLE.

Parameters
[in,out]pInstancepointer to the state-struct

Definition at line 542 of file mxm_17841b.c.

◆ MXM_41BStateHandlerInit()

static void MXM_41BStateHandlerInit ( MXM_41B_INSTANCE_s pInstance)
static

init state handler

This function contains all states for MXM_STATEMACH_41B_INIT.

Parameters
[in,out]pInstancepointer to the state-struct

Default values for the configuration and interrupt registers

This constant array contains the default values to which the configuration is compared when resetting it. The array is 7 entries long in order to fit onto the following registers which are placed in succession in the memory of MAX17841B:

  • RX_Interrupt_Enable
  • TX_Interrupt_Enable
  • RX_Interrupt_Flags
  • TX_Interrupt_Flags
  • Configuration_1
  • Configuration_2
  • Configuration_3

Definition at line 431 of file mxm_17841b.c.

Here is the call graph for this function:

◆ MXM_41BStateHandlerReadStatusRegister()

static void MXM_41BStateHandlerReadStatusRegister ( MXM_41B_INSTANCE_s pInstance)
static

state handler for "read status register"

This functions contains all states for MXM_STATEMACH_41B_READ_STATUS_REGISTER.

Parameters
[in,out]pInstancepointer to the state-struct

Definition at line 560 of file mxm_17841b.c.

Here is the call graph for this function:

◆ MXM_41BStateHandlerUartTransaction()

static void MXM_41BStateHandlerUartTransaction ( MXM_41B_INSTANCE_s pInstance)
static

state handler for "uart transaction"

This functions contains all states for MXM_STATEMACH_41B_UART_TRANSACTION.

Parameters
[in,out]pInstancepointer to the state-struct

Definition at line 586 of file mxm_17841b.c.

Here is the call graph for this function:

◆ MXM_41BStateHandlerWriteConfAndIntRegister()

static void MXM_41BStateHandlerWriteConfAndIntRegister ( MXM_41B_INSTANCE_s pInstance)
static

state handler for "write conf and int register"

This functions contains all states for MXM_STATEMACH_41B_WRITE_CONF_AND_INT_REGISTER.

Parameters
[in,out]pInstancepointer to the state-struct

Definition at line 549 of file mxm_17841b.c.

Here is the call graph for this function: