Shivam Garg / Mbed OS EVAL-ADBMS2950_copy

Dependencies:   ADBMS2950

Embed: (wiki syntax)

« Back to documentation index

Platform_Abstracion_Layer

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 (  )

Function: adBmsCsHigh.

Select chip select High

This function does spi chip select high.

Returns:
None

Definition at line 76 of file pal.cpp.

void adBmsCsLow (  )

Function: adBmsCsLow.

Select chip select low

This function does spi chip select low.

Returns:
None

Definition at line 59 of file pal.cpp.

void adBmsWakeupIc ( uint8_t  total_ic )

Function: adBmsWakeupIc.

Wakeup bms ic using chip select

This function wakeup thr bms ic using chip select.

Parameters:
[in]total_icTotal_ic
Returns:
None

Definition at line 409 of file pal.cpp.

void Delay_ms ( uint32_t  delay )

Function: Delay_ms.

Delay mili second

This function insert delay in ms.

Parameters:

Parameters:
[in]delayDelay_ms
Returns:
None

Definition at line 43 of file pal.cpp.

uint32_t getTimCount (  )

Function: getTimCount()

Get Timer Count Value

This function return the timer count value.

Returns:
tim_count

Definition at line 202 of file pal.cpp.

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_dataRx data pointer
[in]sizeData 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_dataRx data pointer
[in]sizeData size
Returns:
None

Definition at line 149 of file pal.cpp.

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_DataTx data pointer
[in]sizeNumberof 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_DataTx data pointer
[in]sizeNumberof bytes to be send on the SPI line
Returns:
None

Definition at line 97 of file pal.cpp.

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_dataTx data pointer
[in]*rx_dataRx data pointer
[in]sizeData 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_dataTx data pointer
[in]*rx_dataRx data pointer
[in]sizeData size
Returns:
None

Definition at line 121 of file pal.cpp.

void startTimer (  )

Function: startTimer()

Start timer

This function start the timer.

Returns:
None

Definition at line 170 of file pal.cpp.

void stopTimer (  )

Function: stopTimer()

Stop timer

This function stop the timer.

Returns:
None

Definition at line 186 of file pal.cpp.