author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
permissions | -rw-r--r-- |
williamr@4 | 1 |
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@4 | 2 |
// All rights reserved. |
williamr@4 | 3 |
// This component and the accompanying materials are made available |
williamr@4 | 4 |
// under the terms of the License "Eclipse Public License v1.0" |
williamr@4 | 5 |
// which accompanies this distribution, and is available |
williamr@4 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@4 | 7 |
// |
williamr@4 | 8 |
// Initial Contributors: |
williamr@4 | 9 |
// Nokia Corporation - initial contribution. |
williamr@4 | 10 |
// |
williamr@4 | 11 |
// Contributors: |
williamr@4 | 12 |
// |
williamr@4 | 13 |
// Description: |
williamr@4 | 14 |
// omap3530/omap3530_drivers/i2c/omap3530_i2creg.h |
williamr@4 | 15 |
// I2C register interface - uses the I2C driver main interface |
williamr@4 | 16 |
// This file is part of the Beagle Base port |
williamr@4 | 17 |
// |
williamr@4 | 18 |
|
williamr@4 | 19 |
#ifndef OMAP3530_I2CREG_H_ |
williamr@4 | 20 |
#define OMAP3530_I2CREG_H_ |
williamr@4 | 21 |
|
williamr@4 | 22 |
#include <assp/omap3530_assp/omap3530_i2c.h> // for I2c::THandle |
williamr@4 | 23 |
namespace I2cReg |
williamr@4 | 24 |
{ |
williamr@4 | 25 |
IMPORT_C TUint8 ReadB(I2c::THandle, TUint8 aAddr); // Synchronous read of a single byte at address aAddr |
williamr@4 | 26 |
IMPORT_C void WriteB(I2c::THandle, TUint8 aAddr, TUint8 aData); // Synchronous write of a single byte, aData, at address aAddr |
williamr@4 | 27 |
} |
williamr@4 | 28 |
|
williamr@4 | 29 |
#endif // !OMAP3530_I2CREG_H_ |