I2C_UseSemaphore

With the function I2C_UseSemaphore you can disable the lock and unlock mechanism.

int I2C_UseSemaphore( int use ); int i2c_UseSemaphore( int use );

Parameters

use
set to „1“ to use semaphore,
set to „0“ if semaphore shouldn't be used.

Return Values

The function returns 1 if a semaphore has been used before this function call, e.g. returns 0 if not.

Remarks

It's not recommended to shut off the use of a semaphore to synchronize access to the i2c-bus.

Requirements

OS Versions: Windows CE 4.2 and later.
Header: drvlib_app.h
Link Library: drvlib_app.lib