beautypg.com

HID Hi-O iCLASS Installation Guide User Manual

Page 41

background image

iCLASS OEM75 Integration Guide, 3141-907, Rev. B.0

January 2014

Page 41 of 49

HID GLOBAL CONFIDENTIAL AND/OR PROPRIETARY INFORMATION. This document contains confidential and/or proprietary

information, which may not be duplicated, published, disseminated or disclosed, or used for any purpose, without the written

consent of HID Global Corporation. If you are an unintended recipient of this information or are unwilling to accept the above

restrictions, please immediately return this document to HID Global Corporation, 15370 Barranca Pkwy, Irvine, CA 92618-3106.

***********************************************************************/

static void sendI2CAck (void)

{

//

// Send an ACK.

//

ACKDT1 = 0;

ACKEN1 = 1;

CLRWDT();

while (ACKEN1) ;

} /* sendI2CAck */

/***********************************************************************

** NAME:

** sendI2CNak

**

** INPUTS:

** None

**

** OUTPUTS:

** None

**

** RETURN:

** None

**

** DESCRIPTION:

** Sends a NAK on the I2C link.

**

** NOTES:

**

***********************************************************************/

static void sendI2CNak (void)

{

//

// Send a NAK.

//

ACKDT1 = 1;

ACKEN1 = 1;

CLRWDT();

while (ACKEN1) ;

} /* sendI²CNak */

/***********************************************************************

** NAME:

** writeByte

**

** INPUTS:

** None

**

** OUTPUTS:

** None

**

** RETURN:

** None

**

** DESCRIPTION:

** Sends a byte to the I2C.

**

** NOTES:

**