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.
bms.h
- Committer:
- APS_Lab
- Date:
- 2018-02-09
- Revision:
- 1:4dd3e328a30b
- Parent:
- 0:f06ed53310a3
- Child:
- 2:f6f76dde7e1d
File content as of revision 1:4dd3e328a30b:
void cs_low(void);
void cs_high(void);
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