diff options
author | Viktor Mladenovski <viktor.mladenovski@stericsson.com> | 2011-05-20 14:10:59 +0200 |
---|---|---|
committer | Viktor Mladenovski <viktor.mladenovski@stericsson.com> | 2011-05-20 14:10:59 +0200 |
commit | f7e95217e936da34d7124aaced590692eb515923 (patch) | |
tree | 2d9ef4750a67d9d1dd3fe9180a4fef2929fad54b /lcmodule/source/cnh1606344_ldr_communication_module/include/r_r15_family.h |
Initial contribution of loader_communication
ST-Ericsson ID: 326913
ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10204
Change-Id: I171cfc2ee458a8a0a91a1916137d131f0f7ecee5
Diffstat (limited to 'lcmodule/source/cnh1606344_ldr_communication_module/include/r_r15_family.h')
-rw-r--r-- | lcmodule/source/cnh1606344_ldr_communication_module/include/r_r15_family.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/lcmodule/source/cnh1606344_ldr_communication_module/include/r_r15_family.h b/lcmodule/source/cnh1606344_ldr_communication_module/include/r_r15_family.h new file mode 100644 index 0000000..7e6d2f6 --- /dev/null +++ b/lcmodule/source/cnh1606344_ldr_communication_module/include/r_r15_family.h @@ -0,0 +1,68 @@ +/******************************************************************************* + * Copyright (C) ST-Ericsson SA 2011 + * License terms: 3-clause BSD license + ******************************************************************************/ +#ifndef _INCLUSION_GUARD_R_R15_FAMILY_H_ +#define _INCLUSION_GUARD_R_R15_FAMILY_H_ +/** + * @addtogroup ldr_communication_module + * @{ + * @addtogroup R15_family + * The R15 protocol family include two protocols COMMAND and BULK. Command + * protocol is used for sending commands between the ME and PC tool in both + * direction. This module include R15 transport layer and R15 network layer + * for handling R15 prtocols. + * + * @{ + * + */ + +/******************************************************************************* + * Includes + ******************************************************************************/ +#include "t_r15_family.h" +#include "error_codes.h" +#include "t_communication_service.h" + +/******************************************************************************* + * Declaration of functions + ******************************************************************************/ + +#define R15_TRANSPORT(x) (&((R15_FamilyContext_t *) (x)->FamilyContext_p)->Transport) +#define R15_NETWORK(x) (&((R15_FamilyContext_t *) (x)->FamilyContext_p)->Network) +#define R15_TIMEOUTS(x) (&((R15_FamilyContext_t *) (x)->FamilyContext_p)->Timeouts) + +/** + * R15 family protocols initialization. + * + * @param [in] Communication_p Communication module context. + * + * @retval E_SUCCESS After successful execution. + * @retval E_INVALID_INPUT_PARAMETERS Invalid input parameter. + */ +ErrorCode_e R15_Family_Init(Communication_t *Communication_p); + +/** + * R15 family protocols sutdown. + * + * @param [in] Communication_p Communication module context. + * + * @retval E_SUCCESS After successful execution. + * @retval E_INVALID_INPUT_PARAMETERS Invalid input parameter. + */ +ErrorCode_e R15_Family_Shutdown(Communication_t *Communication_p); + +/* + * R15 Cancel Transmition. + * + * @param [in] Communication_p Communication module context. + * @param [in] PacketsBeforeTransferStop Number of packets that will be transmited before stopping the transmition. + * + * @retval E_SUCCESS After successful execution. + * @retval E_INVALID_INPUT_PARAMETERS Invalid input parameter. + */ +ErrorCode_e R15_CancelReceiver(Communication_t *Communication_p, uint8 PacketsBeforeTransferStop); +/** @} */ +/** @} */ +#endif // _INCLUSION_GUARD_R_R15_FAMILY_H_ + |