44
|
1 |
//
|
|
2 |
// * Copyright 2004 Neusoft America Inc.
|
|
3 |
// * All rights reserved.
|
|
4 |
// * This component and the accompanying materials are made available
|
|
5 |
// * under the terms of the Eclipse Public License v1.0
|
|
6 |
// * which accompanies this distribution, and is available
|
|
7 |
// * at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
// *
|
|
9 |
// * Contributors:
|
|
10 |
// * Keith Collins (Neusoft America Inc.) original software development and additional code and modifications.
|
|
11 |
// * Thomas Gahagen (Neusoft America Inc.) additional code and modifications.
|
|
12 |
// * Zhen Yuan (Neusoft America Inc.) additional code and modifications.
|
|
13 |
// *
|
|
14 |
// * Description: This file defines the CCsyMsgBufBpFrame class.
|
|
15 |
// * This class is used to hold frame messages that the CSY sends to and
|
|
16 |
// * receives from the BP multiplexer.
|
|
17 |
//
|
|
18 |
|
|
19 |
// CsyMsgBufBpFrame.h
|
|
20 |
|
|
21 |
/** @file CsyMsgBufBpFrame.h
|
|
22 |
*
|
|
23 |
*/
|
|
24 |
|
|
25 |
#ifndef _CSYMSGBUFBPFRAME_H_
|
|
26 |
#define _CSYMSGBUFBPFRAME_H_
|
|
27 |
|
|
28 |
#include <e32base.h>
|
|
29 |
#include "CsyGlobals.h"
|
|
30 |
|
|
31 |
/** @class CCsyMsgBufBpFrame CsyMsgBufBpFrame.h "CsyMsgBufBpFrame.h"
|
|
32 |
* @brief Class CCsyMsgBufBpFrame is used to hold frame messages
|
|
33 |
* that the CSY sends to and receives from the BP multiplexer.
|
|
34 |
*/
|
|
35 |
class CCsyMsgBufBpFrame : public CBase
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
static CCsyMsgBufBpFrame* NewL();
|
|
39 |
virtual ~CCsyMsgBufBpFrame();
|
|
40 |
|
|
41 |
TUint8 GetDlcNum() const;
|
|
42 |
TUint8 GetFrameType() const;
|
|
43 |
TUint8 GetType4FrameSequence() const;
|
|
44 |
|
|
45 |
TBuf8<KMaxAdvFrameSize> iMsg;
|
|
46 |
|
|
47 |
inline TUint8& CCsyMsgBufBpFrame::MsgDlc();
|
|
48 |
inline TBool& CCsyMsgBufBpFrame::CompleteWhenSent();
|
|
49 |
|
|
50 |
public:
|
|
51 |
TSglQueLink iMsgLink;
|
|
52 |
|
|
53 |
private:
|
|
54 |
CCsyMsgBufBpFrame();
|
|
55 |
void ConstructL();
|
|
56 |
|
|
57 |
private:
|
|
58 |
TUint8 iCsyMsgDlc;
|
|
59 |
TBool iCompleteWhenSent;
|
|
60 |
|
|
61 |
};
|
|
62 |
|
|
63 |
inline TUint8& CCsyMsgBufBpFrame::MsgDlc()
|
|
64 |
{
|
|
65 |
return iCsyMsgDlc;
|
|
66 |
}
|
|
67 |
|
|
68 |
inline TBool& CCsyMsgBufBpFrame::CompleteWhenSent()
|
|
69 |
{
|
|
70 |
return iCompleteWhenSent;
|
|
71 |
}
|
|
72 |
|
|
73 |
#endif //_CSYMSGBUFBPFRAME_H_ |