I2C2_CR2 register
SADD | Slave address |
RD_WRN | Transfer direction (master mode)
|
ADD10 | Ten-bit addressing mode (master mode)
|
HEAD10R | Ten bit (10-bit) address header only read direction (master receiver mode)
|
START | Start generation This bit is set by software, and cleared by hardware after the Start followed by the address sequence is sent, by an arbitration loss, by a timeout error detection, or when PE = 0. It can also be cleared by software by writing 1 to the ADDRCF bit in the I2C_ICR register.
|
STOP | Stop generation (master mode) The bit is set by software, cleared by hardware when a Stop condition is detected, or when PE = 0. In Master Mode:
|
NACK | NACK generation (slave mode) The bit is set by software, cleared by hardware when the NACK is sent, or when a STOP condition or an Address matched is received, or when PE=0.
|
NBYTES | Number of bytes The number of bytes to be transmitted/received is programmed there. This field is dont care in slave mode with SBC=0. |
RELOAD | NBYTES reload mode This bit is set and cleared by software.
|
AUTOEND | Automatic end mode (master mode) This bit is set and cleared by software.
|
PECBYTE | Packet error checking byte This bit is set by software, and cleared by hardware when the PEC is transferred, or when a STOP condition or an Address matched is received, also when PE=0.
|