source: svn/trunk/newcon3bcm2_21bu/magnum/basemodules/reg/breg_spi.c

Last change on this file was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1/***************************************************************************
2 *         Copyright (c) 2003-2011, Broadcom Corporation
3 *         All Rights Reserved
4 *         Confidential Property of Broadcom Corporation
5 *
6 *      THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *      AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *      EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: breg_spi.c $
11 * $brcm_Revision: Hydra_Software_Devel/6 $
12 * $brcm_Date: 1/11/11 7:01p $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log: /magnum/basemodules/reg/breg_spi.c $
19 *
20 * Hydra_Software_Devel/6   1/11/11 7:01p mbatchel
21 * SW35230-2053, SW35230-2702: Integrate SPI isr support for DTV.
22 *
23 * Hydra_Software_Devel/SW35230-2053/1   11/11/10 1:55p mbatchel
24 * SW35230-2053: Integrate SPI isr support for DTV.
25 *
26 * Hydra_Software_Devel/5   1/13/04 5:02p brianlee
27 * PR9268: Make write structures constant.
28 *
29 * Hydra_Software_Devel/4   9/11/03 5:07p brianlee
30 * Fixed SPI register interface function definitions.
31 *
32 * Hydra_Software_Devel/3   8/22/03 2:52p marcusk
33 * Updated with latest changes discussed in the UPG design review.
34 *
35 * Hydra_Software_Devel/2   3/10/03 2:39p marcusk
36 * Removed const keyword from read routines (copy paste error).
37 *
38 * Hydra_Software_Devel/1   3/5/03 5:13p marcusk
39 * Initial version.
40 *
41 ***************************************************************************/
42#include "bstd.h"
43#include "breg_spi.h"
44#include "breg_spi_priv.h"
45
46BERR_Code BREG_SPI_Write(BREG_SPI_Handle spiHandle, const uint8_t *pWriteData, size_t length)
47{
48        return spiHandle->BREG_SPI_Write_Func( spiHandle->context, pWriteData, length);
49}
50
51BERR_Code BREG_SPI_Read(BREG_SPI_Handle spiHandle, const uint8_t *pWriteData, uint8_t *pReadData, size_t length)
52{
53        return spiHandle->BREG_SPI_Read_Func( spiHandle->context, pWriteData, pReadData, length);
54}
55
56BERR_Code BREG_SPI_Write_isr(BREG_SPI_Handle spiHandle, const uint8_t *pWriteData, size_t length)
57{
58        return spiHandle->BREG_SPI_Write_Func_isr( spiHandle->context, pWriteData, length);
59}
60
61BERR_Code BREG_SPI_Read_isr(BREG_SPI_Handle spiHandle, const uint8_t *pWriteData, uint8_t *pReadData, size_t length)
62{
63        return spiHandle->BREG_SPI_Read_Func_isr( spiHandle->context, pWriteData, pReadData, length);
64}
65 
66/* End of File */
Note: See TracBrowser for help on using the repository browser.