1.8.7.60 1.25.6.60 1.26.5.60 1.27.5.60 1.28.6.60 1.36.7.58 1.41.5.60 1.42.3.60 FLEXCOMx_TWI_StatusGet Function

C

/* x = FLEXCOM instance number */

/* TWI slave with interrupt disabled */

FLEXCOM_TWI_SLAVE_STATUS_FLAG FLEXCOMx_TWI_StatusGet(void)

Summary

Returns the TWI hardware status flags.

Description

This function returns the TWI hardware status flags

Precondition

FLEXCOMx_TWI_Initialize must have been called for the associated FLEXCOM TWI instance.

Parameters

None.

Returns

FLEXCOM_TWI_SLAVE_STATUS_FLAG - enum identifying the status bits set. One or more status bits may be set.

Example

FLEXCOM_TWI_SLAVE_STATUS_FLAG twi_status;

twi_status = FLEXCOM0_TWI_StatusGet();

Remarks

None.