CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
CLC_Fct_DataTransferMessage.h
Go to the documentation of this file.
1 //*********************************************************
2 // File: CLC_Fct_DataTransferMessage.h
3 // Project: CopperLan CHAILink Client SDK
4 // Version: 1.3
5 // Release Date: 2014/04/15
6 //*********************************************************
7 
8 /********************************************************************
9 Software License Agreement: CHAILink Client source code
10 
11 The software supplied herewith by Klavis Technology (the “Company”) is intended and
12 supplied to you, the Company’s customer, for use solely and exclusively on embedded
13 CopperLan products needing a CHAILink Client.
14  The software is owned by the Company and/or its supplier, and is protected
15  under applicable copyright laws. All rights are reserved. Any use in violation of the
16  foregoing restrictions may subject the user to criminal sanctions under applicable laws,
17 as well as to civil liability for the breach of the terms and conditions of this license.
18 
19 THIS SOFTWARE MUST REMAIN UNMODIFIED. NO WARRANTIES, WHETHER EXPRESS,
20  IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
21  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE
22 IN CASE OF SOURCE CODE CHANGE BY THE CUSTOMER. IN CASE OF SUCH CHANGE, THE
23 COMPANY SHALL NOT BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
24 OF ANY KIND.
25 ********************************************************************/
26 
27 #ifndef _CLC_FCT_DATATRANSFERTMESSAGE_H_
28 #define _CLC_FCT_DATATRANSFERTMESSAGE_H_
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
38 
46  CPHOOKEDOBJECT const hMsg,
47  CPUINT16 const wNumber);
48 
54  CPHOOKEDOBJECT const hMsg,
55  CPUINT16 * const pwNumber);
57 
60 
66  CPHOOKEDOBJECT const hMsg,
67  CPUINT16 * const pwSendBufferLength);
68 
76  CPHOOKEDOBJECT const hMsg,
77  CPUINT16 const wToOffset,
78  CPUINT16 const wBytesToCopy,
79  CPBYTE const * const pSrcBuffer);
81 
84 
90  CPHOOKEDOBJECT const hMsg,
91  CPUINT16 * const pwReceiveBufferLength);
92 
106  CPHOOKEDOBJECT const hMsg,
107  CPUINT16 const wFromOffset,
108  CPUINT16 const wBytesToRead,
109  CPUINT16 * const pwBytesRead,
110  CPBYTE const ** const ppBuffer);
112 
114 
115 #ifdef __cplusplus
116 }
117 #endif
118 
119 #endif // _CLC_FCT_DATATRANSFERTMESSAGE_H_
CLC_ErrorCode DataTransferMessage_SetNumber(CPHOOKEDOBJECT const hMsg, CPUINT16 const wNumber)
CLC_ErrorCode DataTransferMessage_SetSendBuffer(CPHOOKEDOBJECT const hMsg, CPUINT16 const wToOffset, CPUINT16 const wBytesToCopy, CPBYTE const *const pSrcBuffer)
Fill the message buffer with data coming from the application.
CLC_ErrorCode DataTransferMessage_GetReceiveBufferLength(CPHOOKEDOBJECT const hMsg, CPUINT16 *const pwReceiveBufferLength)
Get the number of bytes available.
#define CLC_SDK_API
Definition: CLCm_Platform.h:37
CPUINT32 CPHOOKEDOBJECT
Handle on Hooked Object.
Definition: CLCm_Types.h:58
CLC_ErrorCode
Error code Enumeration. Error codes from 0x01 to 0xFF are related to a CopperLan functions return cod...
Definition: CLCm_Defines.h:469
unsigned short CPUINT16
Word Integer (16 bit unsigned)
Definition: PlatformTypes.h:45
CLC_ErrorCode DataTransferMessage_GetNumber(CPHOOKEDOBJECT const hMsg, CPUINT16 *const pwNumber)
Get the message's number.
CLC_ErrorCode DataTransferMessage_GetReceiveBuffer(CPHOOKEDOBJECT const hMsg, CPUINT16 const wFromOffset, CPUINT16 const wBytesToRead, CPUINT16 *const pwBytesRead, CPBYTE const **const ppBuffer)
Get the message buffer content.
CLC_ErrorCode DataTransferMessage_GetSendBufferLength(CPHOOKEDOBJECT const hMsg, CPUINT16 *const pwSendBufferLength)
Get the maximum number of bytes the message can carry.