omap3530/omap3530_drivers/i2c/omap3530_i2creg.h
author Lukasz Forynski <lukasz.forynski@gmail.com>
Tue, 28 Sep 2010 02:37:35 +0100 (2010-09-28)
branchBeagle_BSP_dev
changeset 84 09e266454dcf
parent 0 6663340f3fc9
permissions -rwxr-xr-x
Update SPI master pin handling: added dynamic pin configuration for McSPI3 (needed if want to use multiple device on this interface. Now following number of Slave devices is available: McSPI1: 4, McSPI2: 2, McSPI3: 6 (2 per each pin configuration), McSPI4: 1. Only McSPI3 and McSPI4 are available now -there are issues with McSPI1 & 2 due to register access (something wrong with mapping? There is Fault Category: Exception Fault Reason: 10000000
// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of the License "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// omap3530/omap3530_drivers/i2c/omap3530_i2creg.h
// I2C register interface - uses the I2C driver main interface
// This file is part of the Beagle Base port
//

#ifndef OMAP3530_I2CREG_H_
#define OMAP3530_I2CREG_H_

#include <assp/omap3530_assp/omap3530_i2c.h> // for I2c::THandle
namespace I2cReg
{
IMPORT_C TUint8 ReadB(I2c::THandle, TUint8 aAddr); // Synchronous read of a single byte at address aAddr
IMPORT_C void WriteB(I2c::THandle, TUint8 aAddr, TUint8 aData); // Synchronous write of a single byte, aData, at address aAddr
}

#endif // !OMAP3530_I2CREG_H_