Calibre UK UCA93 manual WriteByteNoStatus

Page 19

CALIBRE

3.3.27.RestartNoStatus

Function specification

void RestartNoStatus(int SlaveAddress, int SetNack, int NoTries)

Parameters are:

int SlaveAddress

 

The address to be accessed via the I2C, e.g. A1H.

 

int SetNack

 

This controls whether the Adapter transmits an acknowledge down the I2C bus

 

on reception of a byte. The last byte received during a transfer must not be

 

acknowledged, in all other cases acknowledge must be enabled. If SetNack = 0

 

then acknowledge is enabled, if SetNack = 1 then acknowledge is disabled. It is

 

normal to read data after a restart and hence SetNack will normally be 0.

 

Int NoTries

Parameters returned

This is the number of times the Adapter is to try to send the address

None

Prerequisites

Adapter must be configured using Setup. A start and slave address must have

 

previously been sent using SendAddressNoStatus.

 

Usually a data pointer would already have been written using

 

WriteByteNoStatus.

Functional description

Sends a start code and the slave address.

Issue 1.0

Page 16

01/07/03

 

Image 19
Contents Calibre Calibre Contents Bus Termination and Protection Connecting the Adapter to your SystemGeneral Introduction Packing ListBus Capacitance Limitations/Cable Choice Variable Voltage Bus Power SupplyIntroduction Installing the AdapterLibraries for Programming in Microsoft Windows Environments Function Prototypes Calibre Int BusVoltage Int SlaveBlockTimeoutInt ownaddress Int ClockSpeedNone Int DataByteSendAddress Int I2CDataInt I2Cstatus Using the AdapterReturns an unused integer Int NoBytesToSendInt NoTries Int DataValInt RdData Int TimeoutInt NoBytesToTransmit Int NoBytesToReceive Int PullupVoltage Int Int IOStateSendAddressNoStatus WriteByteNoStatus Stop Real-Time Bus MonitorBit 5 The old STS Bit Bit 4 The BER Bus Error BitAppendix a I2C Communications Adapter Status Codes Bit 7 MSB The old PIN BitBlock Write Function USB Bus CharacteristicsPolling the Status Register and how to avoid it Block FunctionsSlave Receiver Function Slave Transmitter FunctionCalibre Question Do you have software to talk to my........? When the the Most Commonly Asked I2C QuestionsQuestion Get corrupted transfers why is this? General Questions