foxBMS - Unit Tests
1.5.0
The foxBMS Unit Tests API Documentation
|
Configuration for the SPI module. More...
Go to the source code of this file.
Functions | |
void | SPI_SpsInterfaceSwitchToHighSpeed (SPI_INTERFACE_CONFIG_s *pSpiSpsInterface) |
Switch the SPS spi handle to high speed. More... | |
void | SPI_SpsInterfaceSwitchToLowSpeed (SPI_INTERFACE_CONFIG_s *pSpiSpsInterface) |
Switch the SPS spi handle to low speed. More... | |
Variables | |
static spiDAT1_t | spi_kLtcDataConfig [BS_NR_OF_STRINGS] |
static spiDAT1_t | spi_kMxmDataConfig |
static spiDAT1_t | spi_kNxp775DataConfigTx [BS_NR_OF_STRINGS] |
static spiDAT1_t | spi_kNxp775DataConfigRx [BS_NR_OF_STRINGS] |
static spiDAT1_t | spi_kFramDataConfig |
static spiDAT1_t | spi_kSpsDataConfigLowSpeed |
static spiDAT1_t | spi_kSpsDataConfigHighSpeed |
static spiDAT1_t | spi_kSbcDataConfig |
SPI_INTERFACE_CONFIG_s | spi_ltcInterface [BS_NR_OF_STRINGS] |
SPI_INTERFACE_CONFIG_s | spi_mxmInterface |
SPI_INTERFACE_CONFIG_s | spi_nxp775InterfaceTx [BS_NR_OF_STRINGS] |
SPI_INTERFACE_CONFIG_s | spi_nxp775InterfaceRx [BS_NR_OF_STRINGS] |
SPI_INTERFACE_CONFIG_s | spi_framInterface |
SPI_INTERFACE_CONFIG_s | spi_spsInterface |
SPI_INTERFACE_CONFIG_s | spi_sbcMcuInterface |
SPI_BUSY_STATE_e | spi_busyFlags [] |
const uint8_t | spi_nrBusyFlags = sizeof(spi_busyFlags) / sizeof(SPI_BUSY_STATE_e) |
Configuration for the SPI module.
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 spi_cfg.c.
void SPI_SpsInterfaceSwitchToHighSpeed | ( | SPI_INTERFACE_CONFIG_s * | pSpiSpsInterface | ) |
void SPI_SpsInterfaceSwitchToLowSpeed | ( | SPI_INTERFACE_CONFIG_s * | pSpiSpsInterface | ) |
SPI_BUSY_STATE_e spi_busyFlags[] |
SPI_INTERFACE_CONFIG_s spi_framInterface |
SPI interface configuration for FRAM communication
|
static |
SPI data configuration struct for FRAM communication
|
static |
SPI data configuration struct for LTC communication
|
static |
SPI data configuration struct for MXM communication
|
static |
SPI data configuration struct for NXP MC33775A communication, Rx part
|
static |
SPI data configuration struct for NXP MC33775A communication, Tx part
|
static |
SPI configuration struct for SBC communication
|
static |
SPI data configuration struct for SPS communication in high speed (10MHz)
|
static |
SPI data configuration struct for SPS communication in low speed (4MHz)
SPI_INTERFACE_CONFIG_s spi_ltcInterface[BS_NR_OF_STRINGS] |
SPI interface configuration for LTC communication This is a list of structs because of multistring
SPI_INTERFACE_CONFIG_s spi_mxmInterface |
SPI interface configuration for MXM communication
const uint8_t spi_nrBusyFlags = sizeof(spi_busyFlags) / sizeof(SPI_BUSY_STATE_e) |
size of spi_busyFlags
SPI_INTERFACE_CONFIG_s spi_nxp775InterfaceRx[BS_NR_OF_STRINGS] |
SPI interface configuration for N775 communication, Rx part
SPI_INTERFACE_CONFIG_s spi_nxp775InterfaceTx[BS_NR_OF_STRINGS] |
SPI interface configuration for N775 communication Tx part
SPI_INTERFACE_CONFIG_s spi_sbcMcuInterface |
SPI interface configuration for SBC communication
SPI_INTERFACE_CONFIG_s spi_spsInterface |
SPI interface configuration for SPS communication