summaryrefslogtreecommitdiff
path: root/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_protrom_transport.h
blob: 20eef29698e4975333b9963f151895b4a55d70c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*******************************************************************************
 * Copyright (C) ST-Ericsson SA 2011
 * License terms: 3-clause BSD license
 ******************************************************************************/
#ifndef INCLUSION_GUARD_T_PROTROM_TRANSPORT_H
#define INCLUSION_GUARD_T_PROTROM_TRANSPORT_H
/**
 *  @addtogroup ldr_communication_serv
 *  @{
 *    @addtogroup protrom_family
 *    @{
 *      @addtogroup ldr_protrom_transport_layer
 *      @{
 */

/*******************************************************************************
 * Includes
 ******************************************************************************/
#include "t_basicdefinitions.h"
#include "t_protrom_network.h"

/*******************************************************************************
 * Types, constants and external variables
 ******************************************************************************/
/** Callback function type for the Protrom protocol handler. */
typedef ErrorCode_e(* Protrom_Callback_fn)(void *Param_p, uint8 PDU, int PayloadLength, void *Payload_p, Communication_t *Communication_p);

/** Structure for transfer input parameters in PROTROM protocol family */
typedef struct {
    Protrom_Header_t  *Header_p;  /**< Pointer to the PROTROM header structure.*/
    void              *Payload_p; /**< Pointer to the payload data.*/
} Protrom_SendData_LP_t;

/** Protorm Transport context */
typedef struct {
    /**< Callback function pointer for PROTROM protocol handler. */
    Protrom_Callback_fn Callback;
} Protrom_TransportContext_t;

/** @} */
/** @} */
/** @} */
#endif // INCLUSION_GUARD_T_PROTROM_TRANSPORT_H