comparison g23m/condat/ms/src/aci/aci_bat.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-F&D (8411)
4 | Modul : ACI_BAT
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : This header file consists of the prototype for aci_bat.c
18 |
19 +-----------------------------------------------------------------------------
20 */
21 #ifndef ACI_BAT_H
22 #define ACI_BAT_H
23
24 #include "bat_ctrl.h" /* from the bat library to see T_BATC_signal */
25
26 #ifndef ACI_BAT_CMH_H
27 #include "aci_bat_cmh.h"
28 #endif
29
30
31 #ifdef _SIMULATION_
32 #define __STR2__(x) #x
33 #define __STR1__(x) __STR2__(x)
34 #define __TODO__ __FILE__ "("__STR1__(__LINE__)") : ToDo : "
35 #else
36 #define __TODO__
37 #endif
38
39 #define ACI_BAT_MAX_RESPONSES MAX_PB_ENTR /* for CPBR and similiar multi line response commands */
40
41 GLOBAL void aci_bat_send_buffer_dti_data (UBYTE src_id);
42 GLOBAL void aci_bat_check_for_multi_line_response_command(UBYTE src_id);
43 GLOBAL void aci_bat_rcv (T_ACI_DTI_PRC_PSI *src_infos_psi, T_DTI2_DATA_IND *dti_data_ind);
44 GLOBAL void aci_bat_ctrl_rcv (T_ACI_DTI_PRC_PSI *src_infos_psi, T_BATC_signal *signal);
45 GLOBAL void aci_bat_send (T_ACI_DTI_PRC_PSI *src_infos_psi, T_BAT_cmd_response *resp);
46 GLOBAL T_ACI_BAT_RSLT aci_bat_wrapper (T_ACI_DTI_PRC_PSI *src_infos_psi, T_BAT_cmd_send *cmd);
47 GLOBAL T_BAT_ctrl_params aci_bat_cur_cmd_get (T_ACI_DTI_PRC_PSI *src_infos_psi);
48 GLOBAL T_BAT_plus_cscs_cs aci_bat_cs_get (T_ACI_DTI_PRC_PSI *src_infos_psi);
49 GLOBAL void aci_bat_cs_set (T_ACI_DTI_PRC_PSI *src_infos_psi,T_BAT_plus_cscs_cs cs);
50 GLOBAL U8 aci_bat_get_l2p_id (U8 src_id);
51 GLOBAL void aci_bat_run_cmd (T_ACI_DTI_PRC_PSI *src_infos_psi);
52
53 #endif
54