1146 r=gChanSlaveI2c.SetNotificationTrigger(chanId,triggerMask,&status); |
1146 r=gChanSlaveI2c.SetNotificationTrigger(chanId,triggerMask,&status); |
1147 gTest(r==KErrNone); |
1147 gTest(r==KErrNone); |
1148 gTest.Printf(_L("BlockNotification\n")); |
1148 gTest.Printf(_L("BlockNotification\n")); |
1149 r=gChanSlaveI2c.BlockNotification(busIdI2c, chanId); |
1149 r=gChanSlaveI2c.BlockNotification(busIdI2c, chanId); |
1150 gTest(r==KErrNone); |
1150 gTest(r==KErrNone); |
1151 // Now instruct the bus implementation to represent the bus master attempting to read the required number of words |
|
1152 gTest.Printf(_L("\nStarting SimulateTxNWords\n")); |
|
1153 r=gChanSlaveI2c.SimulateTxNWords(busIdI2c, chanId, 12); |
|
1154 gTest(r==KErrNone); |
|
1155 // |
1151 // |
1156 // Wait for the notification |
1152 // Wait for the notification |
1157 User::WaitForRequest(status); |
1153 User::WaitForRequest(status); |
1158 r=status.Int(); |
1154 r=status.Int(); |
1159 if(r != KErrNone) |
1155 if(r != KErrNone) |
1160 { |
1156 { |
1161 gTest.Printf(_L("TRequestStatus value after receiving data = %d\n"),r); |
1157 gTest.Printf(_L("TRequestStatus value after receiving data = %d\n"),r); |
1162 gTest(r==KErrNone); |
1158 gTest(r==KErrNone); |
1163 } |
1159 } |
1164 gTest.Printf(_L("Blocked notification test completed OK\n")); |
1160 gTest.Printf(_L("Blocked notification test completed OK\n")); |
|
1161 // Now instruct the bus implementation to represent the bus master attempting to read the required number of words |
|
1162 gTest.Printf(_L("\nStarting SimulateTxNWords\n")); |
|
1163 r=gChanSlaveI2c.SimulateTxNWords(busIdI2c, chanId, 12); |
|
1164 gTest(r==KErrNone); |
1165 // Re-set the notification trigger - for the 'blocked' Tx |
1165 // Re-set the notification trigger - for the 'blocked' Tx |
1166 // This is required because, in the event of a bus error, the set of requested Rx,Tx |
1166 // This is required because, in the event of a bus error, the set of requested Rx,Tx |
1167 // flags are cleared |
1167 // flags are cleared |
1168 gTest.Printf(_L("Starting SetNotificationTrigger with ETxAllBytes\n")); |
1168 gTest.Printf(_L("Starting SetNotificationTrigger with ETxAllBytes\n")); |
1169 triggerMask=ETxAllBytes; |
1169 triggerMask=ETxAllBytes; |