KIT Solar Car Project / Mbed 2 deprecated BMS_T2

Dependencies:   mbed INA226

Committer:
takuma1
Date:
Sat Oct 26 05:24:17 2019 +0000
Revision:
2:f6f76dde7e1d
Parent:
1:4dd3e328a30b
BMS;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
APS_Lab 1:4dd3e328a30b 1 void cs_low(void);
APS_Lab 1:4dd3e328a30b 2 void cs_high(void);
APS_Lab 1:4dd3e328a30b 3
APS_Lab 0:f06ed53310a3 4 void delay_u(uint16_t micro);
APS_Lab 0:f06ed53310a3 5
APS_Lab 0:f06ed53310a3 6 void delay_m(uint16_t milli);
APS_Lab 0:f06ed53310a3 7
APS_Lab 0:f06ed53310a3 8 void set_spi_freq();
APS_Lab 0:f06ed53310a3 9
APS_Lab 0:f06ed53310a3 10 void spi_enable(void);
APS_Lab 0:f06ed53310a3 11
APS_Lab 0:f06ed53310a3 12 /*
APS_Lab 0:f06ed53310a3 13 Writes an array of bytes out of the SPI port
APS_Lab 0:f06ed53310a3 14 */
takuma1 2:f6f76dde7e1d 15
APS_Lab 0:f06ed53310a3 16 void spi_write_array(uint8_t len, // Option: Number of bytes to be written on the SPI port
APS_Lab 0:f06ed53310a3 17 uint8_t data[] //Array of bytes to be written on the SPI port
APS_Lab 0:f06ed53310a3 18 );
takuma1 2:f6f76dde7e1d 19
APS_Lab 0:f06ed53310a3 20 /*
APS_Lab 0:f06ed53310a3 21 Writes and read a set number of bytes using the SPI port.
APS_Lab 0:f06ed53310a3 22
APS_Lab 0:f06ed53310a3 23 */
APS_Lab 0:f06ed53310a3 24
APS_Lab 0:f06ed53310a3 25 void spi_write_read(uint8_t tx_Data[],//array of data to be written on SPI port
APS_Lab 0:f06ed53310a3 26 uint8_t tx_len, //length of the tx data arry
APS_Lab 0:f06ed53310a3 27 uint8_t *rx_data,//Input: array that will store the data read by the SPI port
APS_Lab 0:f06ed53310a3 28 uint8_t rx_len //Option: number of bytes to be read from the SPI port
APS_Lab 0:f06ed53310a3 29 );
APS_Lab 0:f06ed53310a3 30
takuma1 2:f6f76dde7e1d 31 uint8_t spi_read_byte(uint8_t tx_dat);//name conflicts with linduino also needs to take a byte as a parameter