Restartnostatus, Calibre – Calibre UK UCA93 User Manual

Page 19

Advertising
background image

CALIBRE

Issue 1.0

Page 16

01/07/03

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
This is the number of times the Adapter is to try to send the address

Parameters returned

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.

Advertising