iicps
Vitis Drivers API Documentation
|
This example runs on zynqmp / versal evaluation boards using the IIC device as master to check slave's availability.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a jz 01/30/10 First release 3.18 gm 07/14/23 Added SDT support.
Macros | |
#define | SLV_MON_LOOP_COUNT 0x000FFFFF |
Slave Monitor Loop Count. More... | |
Functions | |
int | IicPsSlaveMonitorExample (void) |
This function checks the availability of a slave using slave monitor mode. More... | |
int | main (void) |
Main function to call the Slave Monitor example. More... | |
Variables | |
volatile u8 | TransmitComplete |
Flag to check completion of Transmission. More... | |
volatile u8 | ReceiveComplete |
Flag to check completion of Reception. More... | |
volatile u32 | TotalErrorCount |
Total Error Count Flag. More... | |
volatile u32 | SlaveResponse |
Slave Response Flag. More... | |
u16 | SlvAddr [] = {0x54, 0x55, 0x74, 0} |
Searching for the required Slave Address and user can also add their own slave Address in the below array list. More... | |
#define SLV_MON_LOOP_COUNT 0x000FFFFF |
Slave Monitor Loop Count.
int IicPsSlaveMonitorExample | ( | void | ) |
int main | ( | void | ) |
Main function to call the Slave Monitor example.
References IicPsSlaveMonitorExample().
volatile u8 ReceiveComplete |
Flag to check completion of Reception.
volatile u32 SlaveResponse |
Slave Response Flag.
u16 SlvAddr[] = {0x54, 0x55, 0x74, 0} |
Searching for the required Slave Address and user can also add their own slave Address in the below array list.
Referenced by IicPsSlaveMonitorExample().
volatile u32 TotalErrorCount |
Total Error Count Flag.
volatile u8 TransmitComplete |
Flag to check completion of Transmission.