Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Platform_Abstracion_Layer
Functions | |
void | Delay_ms (uint32_t delay) |
Function: Delay_ms. | |
void | adBmsCsLow () |
Function: adBmsCsLow. | |
void | adBmsCsHigh () |
Function: adBmsCsHigh. | |
void | spiWriteBytes (uint8_t *tx_data, uint16_t size) |
Function: spiWriteBytes. | |
void | spiWriteReadBytes (uint8_t *tx_data,uint8_t *rx_data,uint16_t size) |
Function: spiWriteReadBytes. | |
void | spiReadBytes (uint8_t *rx_data, uint16_t size) |
Function: spiReadBytes. | |
void | startTimer () |
Function: startTimer() | |
void | stopTimer () |
Function: stopTimer() | |
uint32_t | getTimCount () |
Function: getTimCount() | |
void | adBmsWakeupIc (uint8_t total_ic) |
Function: adBmsWakeupIc. |
Function Documentation
void adBmsCsHigh | ( | ) |
void adBmsCsLow | ( | ) |
void adBmsWakeupIc | ( | uint8_t | total_ic ) |
void Delay_ms | ( | uint32_t | delay ) |
uint32_t getTimCount | ( | ) |
Function: getTimCount()
Get Timer Count Value
This function return the timer count value.
- Returns:
- tim_count
void spiReadBytes | ( | uint8_t * | rx_data, |
uint16_t | size | ||
) |
Function: spiReadBytes.
Read number of bytes using the SPI port.
This function Read a set number of bytes using the SPI port.
- Parameters:
-
[in] *rx_data Rx data pointer [in] size Data size
- Returns:
- None
Read number of bytes using the SPI port.
This function Read a set number of bytes spi miso line.
- Parameters:
-
[in] *rx_data Rx data pointer [in] size Data size
- Returns:
- None
void spiWriteBytes | ( | uint8_t * | tx_data, |
uint16_t | size | ||
) |
Function: spiWriteBytes.
Writes an array of bytes out of the SPI port.
This function wakeup bms ic in IsoSpi mode send dumy byte data in spi line..
- Parameters:
-
[in] *tx_Data Tx data pointer [in] size Numberof bytes to be send on the SPI line
- Returns:
- None
Writes an array of bytes out of the SPI port.
This function sends the byte data into spi mosi line.
- Parameters:
-
[in] *tx_Data Tx data pointer [in] size Numberof bytes to be send on the SPI line
- Returns:
- None
void spiWriteReadBytes | ( | uint8_t * | tx_data, |
uint8_t * | rx_data, | ||
uint16_t | size | ||
) |
Function: spiWriteReadBytes.
Writes and read a set number of bytes using the SPI port.
This function writes and read a set number of bytes using the SPI port.
- Parameters:
-
[in] *tx_data Tx data pointer [in] *rx_data Rx data pointer [in] size Data size
- Returns:
- None
Writes and read a set number of bytes using the SPI port.
This function writes and read a set number of bytes into spi port.
- Parameters:
-
[in] *tx_data Tx data pointer [in] *rx_data Rx data pointer [in] size Data size
- Returns:
- None
void startTimer | ( | ) |
void stopTimer | ( | ) |
Generated on Tue Jul 12 2022 17:54:36 by
