nRF5 SDK v11.0.0
Macros
TWIS driver global configuration

This configuration is placed in the global configuration file nrf_drv_config.h. More...

Macros

#define TWIS_ASSUME_INIT_AFTER_RESET_ONLY   0
 Assume that any instance would be initialized only once. More...
 
#define TWIS_NO_SYNC_MODE   0
 Remove support for synchronous mode. More...
 

Detailed Description

This configuration is placed in the global configuration file nrf_drv_config.h.

Macro Definition Documentation

#define TWIS_ASSUME_INIT_AFTER_RESET_ONLY   0

Assume that any instance would be initialized only once.

Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code.

#define TWIS_NO_SYNC_MODE   0

Remove support for synchronous mode.

Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources.


Documentation feedback | Developer Zone | Updated