comparison gsm-fw/bsp/abb+spi/spi_api.h @ 149:971e84124a6f

gsm-fw/bsp/abb+spi: preening of header files, first pass
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 16 Nov 2013 19:41:30 +0000
parents 63750f70796d
children cc0944d35698
comparison
equal deleted inserted replaced
148:63750f70796d 149:971e84124a6f
16 /* (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved*/ 16 /* (C) Copyright 2000 by Texas Instruments Incorporated, All Rights Reserved*/
17 /****************************************************************************/ 17 /****************************************************************************/
18 #ifndef __SPI_API_H_ 18 #ifndef __SPI_API_H_
19 #define __SPI_API_H_ 19 #define __SPI_API_H_
20 20
21 #include "../../riviera/rv/rv_general.h"
21 22
22 #include "rv/rv_general.h" 23 #include "abb.h"
23 #include "abb/abb.h"
24 24
25 #ifdef __cplusplus 25 #ifdef __cplusplus
26 extern "C" 26 extern "C"
27 { 27 {
28 #endif 28 #endif
43 43
44 /*****************************************/ 44 /*****************************************/
45 /* structures of messages send to SPI */ 45 /* structures of messages send to SPI */
46 /*****************************************/ 46 /*****************************************/
47 47
48 typedef struct 48 typedef struct {
49 { T_RV_HDR os_hdr; 49 T_RV_HDR os_hdr;
50 UINT16 page; 50 UINT16 page;
51 UINT16 address; 51 UINT16 address;
52 UINT16 data; 52 UINT16 data;
53 } T_SPI_WRITE; 53 } T_SPI_WRITE;
54 54
55 55
56 typedef struct 56 typedef struct {
57 { T_RV_HDR os_hdr; 57 T_RV_HDR os_hdr;
58 UINT16 page; 58 UINT16 page;
59 UINT16 address; 59 UINT16 address;
60 } T_SPI_READ; 60 } T_SPI_READ;
61 61
62 62
63 typedef struct 63 typedef struct {
64 { T_RV_HDR os_hdr; 64 T_RV_HDR os_hdr;
65 UINT16 channels; 65 UINT16 channels;
66 UINT16 itval; 66 UINT16 itval;
67 } T_SPI_ABB_CONF_ADC; 67 } T_SPI_ABB_CONF_ADC;
68 68
69 69
70 typedef struct 70 typedef struct {
71 { T_RV_HDR os_hdr; 71 T_RV_HDR os_hdr;
72 UINT16 *Buff; 72 UINT16 *Buff;
73 CALLBACK_FUNC_NO_PARAM callback_func; 73 CALLBACK_FUNC_NO_PARAM callback_func;
74 } T_SPI_ABB_READ_ADC; 74 } T_SPI_ABB_READ_ADC;
75 75
76 76
77 77
78 #ifdef __cplusplus 78 #ifdef __cplusplus
173 /* */ 173 /* */
174 /********************************************************************************/ 174 /********************************************************************************/
175 T_RV_RET spi_abb_read_ADC(UINT16 *Buff, CALLBACK_FUNC_NO_PARAM CallBack); 175 T_RV_RET spi_abb_read_ADC(UINT16 *Buff, CALLBACK_FUNC_NO_PARAM CallBack);
176 176
177 #endif /* __SPI_API_H_ */ 177 #endif /* __SPI_API_H_ */
178