foxBMS
1.1.1
The foxBMS Battery Management System API Documentation
|
Headers for the configuration for the SPI module. More...
Go to the source code of this file.
Data Structures | |
struct | SPI_INTERFACE_CONFIG |
Macros | |
#define | LTC_SPI_NODE (spiREG1) |
#define | SPS_SPI_CS_GIOPORT (hetREG2->DOUT) |
#define | SPS_SPI_CS_GIOPORT_DIR (hetREG2->DIR) |
#define | SPS_SPI_CS_PIN (1u) |
#define | N775_SPI_TX_NODE (spiREG1) |
#define | N775_SPI_TX_GIOPORT (N775_SPI_TX_NODE->PC3) |
#define | N775_SPI_TX_CS_PIN (2U) |
#define | N775_SPI_RX_NODE (spiREG5) |
#define | N775_SPI_RX_GIOPORT (N775_SPI_TX_NODE->PC3) |
#define | N775_SPI_RX_CS_PIN (2U) |
Typedefs | |
typedef enum SPI_BUSY_STATE | SPI_BUSY_STATE_e |
typedef enum SPI_INTERFACE | SPI_INTERFACE_e |
typedef struct SPI_INTERFACE_CONFIG | SPI_INTERFACE_CONFIG_s |
Enumerations | |
enum | SPI_BUSY_STATE { SPI_IDLE , SPI_BUSY } |
enum | SPI_INTERFACE { SPI_Interface1 , SPI_Interface2 , SPI_Interface3 , SPI_Interface4 , SPI_Interface5 } |
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 | |
const spiDAT1_t | spi_kNxp775DataConfig |
SPI_INTERFACE_CONFIG_s | spi_ltcInterface [BS_NR_OF_STRINGS] |
SPI_INTERFACE_CONFIG_s | spi_MxmInterface |
SPI_INTERFACE_CONFIG_s | spi_nxp775Interface |
SPI_INTERFACE_CONFIG_s | spi_framInterface |
SPI_INTERFACE_CONFIG_s | spi_spsInterface |
SPI_INTERFACE_CONFIG_s | spi_adc0Interface |
SPI_INTERFACE_CONFIG_s | spi_adc1Interface |
SPI_INTERFACE_CONFIG_s | spi_kSbcMcuInterface |
SPI_INTERFACE_CONFIG_s | spi_dmaTransmission [] |
Variable used for SPI over DMA transmission. Retains the CS pin to deactivate in DMA callback. More... | |
uint32_t | spi_saveFmt0 [] |
SPI_BUSY_STATE_e | spi_busyFlags [] |
const uint8_t | spi_nrBusyFlags |
Headers for the 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.h.
#define N775_SPI_RX_CS_PIN (2U) |
#define N775_SPI_RX_GIOPORT (N775_SPI_TX_NODE->PC3) |
#define N775_SPI_RX_NODE (spiREG5) |
#define N775_SPI_TX_CS_PIN (2U) |
#define N775_SPI_TX_GIOPORT (N775_SPI_TX_NODE->PC3) |
#define N775_SPI_TX_NODE (spiREG1) |
#define SPS_SPI_CS_GIOPORT (hetREG2->DOUT) |
#define SPS_SPI_CS_GIOPORT_DIR (hetREG2->DIR) |
#define SPS_SPI_CS_PIN (1u) |
typedef enum SPI_BUSY_STATE SPI_BUSY_STATE_e |
enum for spi interface state
typedef struct SPI_INTERFACE_CONFIG SPI_INTERFACE_CONFIG_s |
configuration of the SPI interface
typedef enum SPI_INTERFACE SPI_INTERFACE_e |
spi block identification numbers
enum SPI_BUSY_STATE |
enum SPI_INTERFACE |
void SPI_SpsInterfaceSwitchToHighSpeed | ( | SPI_INTERFACE_CONFIG_s * | pSpiSpsInterface | ) |
void SPI_SpsInterfaceSwitchToLowSpeed | ( | SPI_INTERFACE_CONFIG_s * | pSpiSpsInterface | ) |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
size of spi_busyFlags
|
extern |
|
extern |
|
extern |