omap3530/omap3530_drivers/spi/psl_init.h
branchBeagle_BSP_dev
changeset 77 e5fd00cbb70a
child 84 09e266454dcf
equal deleted inserted replaced
76:29b14275133a 77:e5fd00cbb70a
       
     1 // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 // lukasz.forynski@gmail.com
       
    13 //
       
    14 // Description:
       
    15 // omap3530/omap3530_drivers/spi/psl_init.h
       
    16 //
       
    17 
       
    18 
       
    19 #ifndef __OMAP3530_SPI_PSL_H__
       
    20 #define __OMAP3530_SPI_PSL_H__
       
    21 
       
    22 const TInt KIicPslNumOfChannels = 1; // Number of channels supported // TODO only one for now..
       
    23 
       
    24 struct TIicOperationType
       
    25     {
       
    26     enum TOperation
       
    27         {
       
    28         ENop             = 0x00,
       
    29         ETransmitOnly    = 0x01,
       
    30         EReceiveOnly     = 0x02,
       
    31         ETransmitReceive = 0x03
       
    32         };
       
    33 
       
    34     struct TOp
       
    35         {
       
    36         TUint8 iIsTransmitting : 1;
       
    37         TUint8 iIsReceiving    : 1;
       
    38         TUint8 iRest           : 6;
       
    39         };
       
    40 
       
    41     union
       
    42         {
       
    43         TOp iOp;
       
    44         TUint8 iValue;
       
    45         };
       
    46     };
       
    47 
       
    48 #endif /*__OMAP3530_SPI_PSL_H__*/