LTC6811 Battery Management System with ADuCM3029.

Revision:
0:f06ed53310a3
Child:
1:4dd3e328a30b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bms.h	Wed Feb 07 08:26:04 2018 +0000
@@ -0,0 +1,26 @@
+void delay_u(uint16_t micro);
+
+void delay_m(uint16_t milli);
+
+void set_spi_freq();
+
+void spi_enable(void);
+
+/*
+Writes an array of bytes out of the SPI port
+*/
+void spi_write_array(uint8_t len, // Option: Number of bytes to be written on the SPI port
+                     uint8_t data[] //Array of bytes to be written on the SPI port
+                    );
+/*
+ Writes and read a set number of bytes using the SPI port.
+
+*/
+
+void spi_write_read(uint8_t tx_Data[],//array of data to be written on SPI port
+                    uint8_t tx_len, //length of the tx data arry
+                    uint8_t *rx_data,//Input: array that will store the data read by the SPI port
+                    uint8_t rx_len //Option: number of bytes to be read from the SPI port
+                   );
+
+uint8_t spi_read_byte(uint8_t tx_dat);//name conflicts with linduino also needs to take a byte as a parameter