diff options
Diffstat (limited to 'lcmodule/source/cnh1605204_ldr_transport_layer/include')
12 files changed, 18 insertions, 26 deletions
diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_a2_transport.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_a2_transport.h index 7d90384..bdabd8f 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_a2_transport.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_a2_transport.h @@ -17,9 +17,7 @@ /******************************************************************************* * Includes ******************************************************************************/ -#include "t_a2_transport.h" -#include "t_communication_service.h" -#include "error_codes.h" +#include "error_codes.h" /******************************************************************************* * Declaration of functions diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_bulk_protocol.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_bulk_protocol.h index fa3f4ee..7943354 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_bulk_protocol.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_bulk_protocol.h @@ -11,7 +11,7 @@ * @{ * @addtogroup bulk_protocol Bulk Protocol * Functionalities for handling bulk protocol. Receiving/Sending bulk - * commands and state machines for receivin and sending bulk data chunks. + * commands and state machines for receiving and sending bulk data chunks. * * @{ */ @@ -19,7 +19,7 @@ /******************************************************************************* * Includes ******************************************************************************/ -#include "c_system.h" +#include "c_system_v2.h" #include "t_bulk_protocol.h" #include "t_r15_transport_layer.h" #include "t_r15_network_layer.h" diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_protrom_protocol.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_protrom_protocol.h index 2dac437..e057a17 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_protrom_protocol.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_protrom_protocol.h @@ -18,10 +18,7 @@ /******************************************************************************* * Includes ******************************************************************************/ -#include "t_protrom_protocol.h" #include "error_codes.h" -#include "t_communication_service.h" -#include "t_r15_network_layer.h" /******************************************************************************* * Declaration of functions diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_protrom_transport.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_protrom_transport.h index ad47f6e..3a5e21e 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_protrom_transport.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_protrom_transport.h @@ -11,7 +11,7 @@ * @{ * @addtogroup ldr_protrom_transport_layer PROTROM Transport Layer * PROTROM functionalities for sending PROTROM packets and - * polling receiver and transmiter. + * polling receiver and transmitter. * * @{ */ @@ -19,7 +19,6 @@ /******************************************************************************* * Includes ******************************************************************************/ -#include "t_protrom_transport.h" #include "t_communication_service.h" #include "error_codes.h" diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_r15_transport_layer.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_r15_transport_layer.h index 904eb8b..bd832b0 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_r15_transport_layer.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_r15_transport_layer.h @@ -11,7 +11,7 @@ * @{ * @addtogroup ldr_r15_transport_layer R15 Transport layer * R15 functionalities for sending R15 packets and - * polling receiver and transmiter. + * polling receiver and transmitter. * * @{ */ @@ -19,9 +19,8 @@ /******************************************************************************* * Includes ******************************************************************************/ -#include "t_r15_transport_layer.h" #include "t_communication_service.h" -#include "error_codes.h" +#include "error_codes.h" /******************************************************************************* * Declaration of functions @@ -60,9 +59,9 @@ ErrorCode_e R15_Transport_Poll(Communication_t *Communication_p); * Function for sending packet in R15 protocol family. * * @param [in] Communication_p Communication module context. - * @param [in] InputDataIn_p Pointer to the input data. + * @param [in] InputDataIn_p Pointer to the input data. * - * @retval E_SUCCESS After successful execution. + * @retval E_SUCCESS After successful execution. * @retval E_FAILED_TO_ALLOCATE_COMM_BUFFER Failed to allocate communication * buffer. */ diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_z_protocol.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_z_protocol.h index f4e9055..755899c 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_z_protocol.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_z_protocol.h @@ -11,7 +11,7 @@ * @{ * @addtogroup z_protocol Z Protocol * Functionalities for handling Z commands. All Z commands are not decoded - * in this layer, it is resent to teh application layer for decoding + * in this layer, it is resent to the application layer for decoding * and executing. * * @{ diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_z_transport.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_z_transport.h index 6de0225..6169022 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_z_transport.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/r_z_transport.h @@ -11,7 +11,7 @@ * @{ * @addtogroup ldr_z_transport_layer Z Transport layer * TI functionalities for sending Z packets, Initialization and - * polling receiver and transmiter. + * polling receiver and transmitter. * * @{ */ diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_bulk_protocol.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_bulk_protocol.h index 38ca8b4..95c4dbd 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_bulk_protocol.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_bulk_protocol.h @@ -64,14 +64,14 @@ TYPEDEF_ENUM { WAIT_TX_DONE = 9, /**< Wait all chunks to be sent. */ WRITE_BULK_FINISH = 10, /**< Bulk acknowledge has been received, finish the write bulk process. */ - WAIT_WRITE_REQUEST = 11, /**< Wait bulk request command. */ + WAIT_WRITE_REQUEST = 11, /**< Wait bulk request command. */ CANCEL_BULK = 12 } ENUM8(TL_BulkProtocolState_t); /** Defined bulk process states. */ TYPEDEF_ENUM { BULK_SESSION_IDLE = 0x00, /**< Bulk transfer is closed and ready - for starting. */ + for starting. */ BULK_SESSION_OPEN = 0x01, /**< Bulk transfer is opened. */ BULK_SESSION_PROCESSING = 0x02, /**< Processing the bulk transfer. */ BULK_SESSION_FINISHED = 0x04, /**< Bulk transfer is finished. */ diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_command_protocol.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_command_protocol.h index 2ca51c6..5896727 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_command_protocol.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_command_protocol.h @@ -30,9 +30,9 @@ */ typedef enum { COMMAND_TYPE, /**< Command type of the packet.*/ - COMMAND_ACK, /**< Acknwoledge type of the packet.*/ + COMMAND_ACK, /**< Acknowledge type of the packet.*/ GENERAL_RESPONSE, /**< General response type of the packet.*/ - GENERAL_RESPONSE_ACK /**< General response acknwoledge type of the packet.*/ + GENERAL_RESPONSE_ACK /**< General response acknowledge type of the packet.*/ } CommandType_t; @@ -52,7 +52,7 @@ typedef struct Buffer_s { typedef struct Result_s { ErrorCode_e Status; /**< Status send by the general response. */ Buffer_t *Response_p; /**< Buffer holding data that should be - returned trough the general response */ + returned trough the general response */ } Result_t; /** @@ -62,7 +62,7 @@ typedef struct CommandData_s { uint8 CommandNr; /**< Number of the command. */ uint8 ApplicationNr;/**< Number of the application (command) group. */ uint16 SessionNr; /**< Number of the session in which this command - was received.*/ + was received.*/ CommandType_t Type; /**< Command type. */ Buffer_t Payload; /**< Holds the data received with the command.*/ } CommandData_t; diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_protrom_protocol.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_protrom_protocol.h index 2bc544b..8813b87 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_protrom_protocol.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_protrom_protocol.h @@ -16,7 +16,6 @@ /******************************************************************************* * Includes ******************************************************************************/ -#include "t_protrom_header.h" #include "t_protrom_network.h" #include "t_protrom_transport.h" diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_protrom_transport.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_protrom_transport.h index 20eef29..25ef644 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_protrom_transport.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_protrom_transport.h @@ -17,7 +17,6 @@ * Includes ******************************************************************************/ #include "t_basicdefinitions.h" -#include "t_protrom_network.h" /******************************************************************************* * Types, constants and external variables diff --git a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_r15_transport_layer.h b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_r15_transport_layer.h index 75007b8..80bef19 100644 --- a/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_r15_transport_layer.h +++ b/lcmodule/source/cnh1605204_ldr_transport_layer/include/t_r15_transport_layer.h @@ -32,7 +32,7 @@ typedef struct { void *Payload_p; /**< Pointer to payload data.*/ uint32 Time; /**< Used time for retransmission.*/ HandleFunction_t TimerCallBackFn_p; /**< Timer call back function for - retransmission.*/ + retransmission.*/ } SendData_LP_t; /** R15 Transport context. */ @@ -55,6 +55,7 @@ typedef struct { void *BulkDataCallback_p; /** Callback function pointer for handling end of bulk transfer.*/ void *EndOfDump_p; + /** Callback function pointer for handling releasing of bulk buffers.*/ void *BulkBufferRelease_p; } R15_TransportContext_t; |