LTC6811 Battery Management System with ADuCM3029.

Committer:
APS_Lab
Date:
Wed Feb 07 08:26:04 2018 +0000
Revision:
0:f06ed53310a3
Child:
1:4dd3e328a30b
Ver1.0;

Who changed what in which revision?

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