|
STM8S/A Standard Peripherals Firmware Library
|
STM8S_StdPeriph_Examples/I2C/I2C_TwoBoards/I2C_DataExchange/Master/main.c File Reference
Go to the source code of this file.
Functions | |
| TestStatus | Buffercmp (uint8_t *pBuffer1, uint8_t *pBuffer2, uint16_t BufferLength) |
| Compares two buffers. | |
| void | Delay (__IO uint32_t nCount) |
| Inserts a delay time. | |
| void | main () |
| Main program. | |
Variables | |
| uint8_t | HEADER_ADDRESS_Read = (((SLAVE_ADDRESS & 0xFF00) >> 7) | 0xF1) |
| uint8_t | HEADER_ADDRESS_Write |
| uint8_t | i = 0 |
| __IO uint8_t | NumByteToRead = BUFFERSIZE |
| __IO uint8_t | NumOfBytes = BUFFERSIZE |
| __IO uint8_t | Rx_Idx = 0 |
| __IO uint8_t | RxBuffer [BUFFERSIZE] |
| TestStatus | TransferStatus1 = FAILED |
| __IO uint8_t | Tx_Idx = 0 |
| __IO uint8_t | TxBuffer [BUFFERSIZE] |