|
foxBMS
1.0.0
The foxBMS Battery Management System API Documentation
|
Go to the documentation of this file.
57 #ifndef FOXBMS__MXM_17841B_H_
58 #define FOXBMS__MXM_17841B_H_
75 #define MXM_SPI_TX_BUFFER_LENGTH (8u)
298 uint16_t payloadLength,
299 uint8_t extendMessageBytes,
301 uint16_t rxBufferLength,
@ MXM_41B_VERSION_REQUEST_REGISTER
@ MXM_41B_REG_FUNCTION_RX_ERROR_INT
void MXM_41BStateMachine(MXM_41B_INSTANCE_s *pInstance)
Execute state-machine for the MAX17841B.
uint16_t spiRXBuffer[100]
@ MXM_STATEMACH_41B_CLEAR_TRANSMIT_BUFFER
const uint8_t mxm_kRXInterruptEnableRXErrorRXOverflow41BRegister
standard configuration for register rx interrupt
@ MXM_41B_UART_WRITE_LOAD_QUEUE
STD_RETURN_TYPE_e MXM_41BWriteRegisterFunction(MXM_41B_INSTANCE_s *pInstance, MXM_41B_REG_FUNCTION_e registerFunction, MXM_41B_REG_BIT_VALUE value)
Write a register function.
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
@ MXM_STATEMACH_41B_MAXSTATE
MXM_41B_SUBSTATES_e substate
uint16_t spiTXBuffer[MXM_SPI_TX_BUFFER_LENGTH]
@ MXM_41B_REG_FUNCTION_RX_BUSY_STATUS
Header for the configuration for the Maxim monitoring chip.
@ MXM_STATEMACH_41B_UART_TRANSACTION
@ MXM_41B_REG_FUNCTION_RX_EMPTY_STATUS
uint8_t extendMessageBytes
MXM_41B_SUBSTATES
Substates of the MAX17841B state-machine.
@ MXM_41B_REG_FUNCTION_KEEP_ALIVE
@ MXM_STATEMACH_41B_READ_STATUS_REGISTER
enum MXM_41B_STATE_REQUEST_STATUS MXM_41B_STATE_REQUEST_STATUS_e
Request status of MAX17841B states.
enum MXM_41B_REG_FUNCTION MXM_41B_REG_FUNCTION_e
Register functions.
@ MXM_STATEMACH_41B_UNINITIALIZED
@ MXM_41B_READ_STATUS_REGISTER_SEND
MXM_STATEMACH_41B
States of the MAX17841B state-machine.
@ MXM_41B_REG_FUNCTION_RX_OVERFLOW_INT
MXM_41B_REG_FUNCTION
Register functions.
MXM_41B_STATE_REQUEST_STATUS
Request status of MAX17841B states.
struct MXM_41B_INSTANCE MXM_41B_INSTANCE_s
Struct for the state-variable of state-machine.
@ MXM_41B_UART_READ_BACK_RECEIVE_BUFFER_SAVE
@ MXM_STATEMACH_41B_WRITE_CONF_AND_INT_REGISTER
@ MXM_41B_UART_READ_LOAD_QUEUE
@ MXM_STATEMACH_41B_GET_VERSION
@ MXM_41B_REG_FUNCTION_RX_STOP_STATUS
@ MXM_41B_FMEA_REQUEST_REGISTER
@ MXM_41B_INIT_READ_CONFIG_REGISTERS
const uint8_t mxm_kConfig3KeepAlive160us41BRegister
standard configuration for register config 3
MXM_STATEMACH_41B_e state
MXM_41B_STATE_REQUEST_STATUS_e * processed
Struct for the state-variable of state-machine.
STD_RETURN_TYPE_e MXM_41BSetStateRequest(MXM_41B_INSTANCE_s *pInstance, MXM_STATEMACH_41B_e state, uint16_t *pPayload, uint16_t payloadLength, uint8_t extendMessageBytes, uint16_t *pRxBuffer, uint16_t rxBufferLength, MXM_41B_STATE_REQUEST_STATUS_e *processed)
Set state transition for MAX17841B-state-machine.
@ MXM_41B_STATE_PROCESSED
enum MXM_STATEMACH_41B MXM_STATEMACH_41B_e
States of the MAX17841B state-machine.
const uint8_t mxm_kConfig2EnableTransmitPreamblesMode41BRegister
standard configuration for register config 2
STD_RETURN_TYPE_e MXM_41BReadRegisterFunction(MXM_41B_INSTANCE_s *pInstance, MXM_41B_REG_FUNCTION_e registerFunction, MXM_41B_REG_BIT_VALUE *pValue)
Read the value of a register function.
enum MXM_41B_SUBSTATES MXM_41B_SUBSTATES_e
Substates of the MAX17841B state-machine.
@ MXM_41B_INIT_WRITE_DEFAULT_VALUES
@ MXM_41B_UART_WAIT_FOR_RX_STATUS_CHANGE_WRITE
@ MXM_41B_REG_FUNCTION_TX_PREAMBLES
@ MXM_41B_STATE_UNPROCESSED
@ MXM_41B_UART_WAIT_FOR_RX_STATUS_CHANGE_READ_AND_READ_BACK_RCV_BUF
@ MXM_STATEMACH_41B_CHECK_FMEA
@ MXM_41B_READ_STATUS_REGISTER_PROCESS
#define MXM_SPI_TX_BUFFER_LENGTH
SPI TX buffer length.
@ MXM_41B_UART_VERIFY_LOAD_QUEUE_AND_TRANSMIT
@ MXM_41B_INIT_CHECK_INITIALIZATION
@ MXM_STATEMACH_41B_CLEAR_RECEIVE_BUFFER