8.3.9.5.2 Programming Client Mode
The following fields must be programmed before entering Client mode:
- FLEX_TWI_SMR.SADR: The client device address is used in order to be accessed by host devices in Read or Write mode.
- (Optional) FLEX_TWI_SMR.MASK can be set to mask some SADR address bits and thus allow multiple address matching.
- FLEX_TWI_CR.MSDIS: Disables Host mode.
- FLEX_TWI_CR.SVEN: Enables Client mode.
As the device receives the clock, values written in FLEX_TWI_CWGR are not processed.