comparison gsm-fw/g23m-aci/gdd_dio/dio_il_psi_stub.h @ 775:eedbf248bac0

gsm-fw/g23m-aci subtree: initial import from LoCosto source
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 12 Oct 2014 01:45:14 +0000
parents
children
comparison
equal deleted inserted replaced
774:40a721fd9854 775:eedbf248bac0
1 /*
2 +-----------------------------------------------------------------------------
3 | File : dio_il_psi_stub.h
4 +-----------------------------------------------------------------------------
5 | Copyright 2002 Texas Instruments Berlin, AG
6 | All rights reserved.
7 |
8 | This file is confidential and a trade secret of Texas
9 | Instruments Berlin, AG
10 | The receipt of or possession of this file does not convey
11 | any rights to reproduce or disclose its contents or to
12 | manufacture, use, or sell anything it may describe, in
13 | whole, or in part, without the specific written consent of
14 | Texas Instruments Berlin, AG.
15 +-----------------------------------------------------------------------------
16 | Purpose : Definitions for gdd_dio_rxf.c
17 +-----------------------------------------------------------------------------
18 */
19
20 #ifndef DIO_IL_PSI_STUB_H
21 #define DIO_IL_PSI_STUB_H
22
23 /*==== DEFINITIONS ==========================================================*/
24
25 /*
26 * position of Driver number - needed to retrieve driver number from device id
27 */
28 #define DIO_DRV_POS 24
29
30
31 /*==== FUNCTIONS ============================================================*/
32
33
34 /*
35 +------------------------------------------------------------------------------
36 | Function : psi_stub_dio_sign_callback
37 +------------------------------------------------------------------------------
38 | Description : The function psi_stub_dio_sign_callback() is the callback
39 | function of the DIO driver to indicate events of the driver.
40 | This function is called in interrupt context. It converts the
41 | given opcode to a signal.
42 |
43 | Parameters : pointer to signal
44 |
45 +------------------------------------------------------------------------------
46 */
47 EXTERN void psi_stub_dio_sign_callback (T_DRV_SIGNAL *SigPtr);
48
49
50 /*
51 +------------------------------------------------------------------------------
52 | Function : Test helper function to switch on/off automatic provision with
53 | RX buffers after read.
54 +------------------------------------------------------------------------------
55 */
56 EXTERN void psi_stub_send_rx_buf_after_read(BOOL b);
57
58
59 /*
60 +------------------------------------------------------------------------------
61 | Function : Test helper function to trigger the provision of an RX buffer
62 | on the last used connection in the PSI STUB.
63 +------------------------------------------------------------------------------
64 */
65 EXTERN void psi_stub_provide_rx_buf();
66
67
68 /*
69 +------------------------------------------------------------------------------
70 | Function : Copy a DIO buffer
71 +------------------------------------------------------------------------------
72 */
73 EXTERN void copy_dio_buf(const T_dio_buffer * buf_in, T_dio_buffer ** buf_out);
74
75 /*
76 +------------------------------------------------------------------------------
77 | Function : Allocate an RX buffer for PSI simulation
78 +------------------------------------------------------------------------------
79 | Description : The allocated buffer has two segments: the first one has
80 | 2 bytes (for the protocol ID), and the second one has
81 | GDD_DIO_MTU_SIZE for the payload.
82 +------------------------------------------------------------------------------
83 */
84 EXTERN void allocate_rx_dio_buf(T_dio_buffer ** buf_out);
85
86 /*
87 +------------------------------------------------------------------------------
88 | Function : General allocator for a DIO buffer
89 +------------------------------------------------------------------------------
90 */
91 EXTERN void allocate_dio_buf(T_dio_buffer ** buf_out, const U16 seg_size[], U16 num_seg);
92
93
94 /*
95 +------------------------------------------------------------------------------
96 | Function : Free a DIO buffer and all memory associated with it.
97 +------------------------------------------------------------------------------
98 */
99 EXTERN void free_dio_buf(T_dio_buffer ** buf);
100
101
102 #endif /* !DIO_IL_PSI_STUB_H */
103