summaryrefslogtreecommitdiff
path: root/lcmodule/source/cnh1605205_ldr_network_layer/include/t_r15_network_layer.h
diff options
context:
space:
mode:
Diffstat (limited to 'lcmodule/source/cnh1605205_ldr_network_layer/include/t_r15_network_layer.h')
-rw-r--r--lcmodule/source/cnh1605205_ldr_network_layer/include/t_r15_network_layer.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/lcmodule/source/cnh1605205_ldr_network_layer/include/t_r15_network_layer.h b/lcmodule/source/cnh1605205_ldr_network_layer/include/t_r15_network_layer.h
index 0bd2944..408fdf9 100644
--- a/lcmodule/source/cnh1605205_ldr_network_layer/include/t_r15_network_layer.h
+++ b/lcmodule/source/cnh1605205_ldr_network_layer/include/t_r15_network_layer.h
@@ -71,8 +71,8 @@
/** Size of a buffer used for commands. */
#define COMMAND_BUFFER_SIZE 0x00010000
-/** Size of a buffer used for bulk transfer,
- * must be biger than buffer for commands. */
+/** Size of a payload buffer used for bulk transfer,
+ * must be larger than buffer for commands. */
#define BULK_BUFFER_SIZE 0x00100000
@@ -86,7 +86,7 @@
#define SESSION_MASK 0xFFFC
/**
- * Defines all posible types of buffers that can be created (allocated).
+ * Defines all possible types of buffers that can be created (allocated).
*
* It is used to specified the type of the buffer
* when allocating a new buffer. Also it is used when
@@ -108,7 +108,7 @@ TYPEDEF_ENUM {
BUF_TX_SENT = 0x00000008, /**< The buffer is sent and wait ACK. */
BUF_TX_DONE = 0x00000010, /**< The buffer has been sent and can
be deallocated. */
- BUF_TX_TIMEOUT = 0x00000020, /**< The timeout ocure when buffer is
+ BUF_TX_TIMEOUT = 0x00000020, /**< The timeout occur when buffer is
sending. */
BUF_RX_READY = 0x00000040, /**< The buffer is filled with
received data and is ready for
@@ -201,7 +201,7 @@ typedef void (*PacketCallBack_t)(Communication_t *Communication_p, const void *D
/** Structure for the packet meta data. */
typedef struct PacketMeta {
- PacketCallBack_t CallBack_p; /**< Cllback function used after
+ PacketCallBack_t CallBack_p; /**< Callback function used after
sending packet.*/
uint32 Flags; /**< Field is a bit-field. Flags
for the Packet state. */
@@ -209,9 +209,9 @@ typedef struct PacketMeta {
corresponding buffer used in
the packet. */
R15_Header_t Header; /**< Structure of the header. */
- uint32 Resend; /**< Resend counter. */
+ uint32 Resend; /**< Resent counter. */
Timer_t *Timer_p; /**< Timer data used for
- sending/reciving packet. */
+ sending/receiving packet. */
uint8 *ExtendedHeader_p; /**< Pointer to the extended
header located in the packet. */
uint8 *Payload_p; /**< Pointer to the payload data
@@ -234,8 +234,7 @@ typedef struct {
uint32 Timeout; /**< Defined timeout for retransmission. */
uint32 TimerKey; /**< Timer identification number.*/
uint32 Key; /**< Generated unique key, used for marking packet for
- retransmission or removing from
- retransmission list. */
+ retransmission or removing from retransmission list. */
PacketMeta_t *Packet_p; /**< Pointer to the packet for retransmission. */
} RetransmissionContext_t;
@@ -246,9 +245,9 @@ typedef struct {
R15_InboundState_t State;
/**< Number of requested data for receiving from communication device. */
uint32 ReqData;
- /**< Number of receivied data from communication device. */
+ /**< Number of received data from communication device. */
uint32 RecData;
- /**< Number of receivied data from backup buffer used for switching the
+ /**< Number of received data from backup buffer used for switching the
* protocol family. */
uint32 RecBackupData;
/**< Offset in the buffer for next data that should be received. */
@@ -259,9 +258,9 @@ typedef struct {
uint8 Scratch[ALIGNED_HEADER_LENGTH + ALIGNED_BULK_EXTENDED_HEADER_LENGTH];
/** Temporary structure for handling R15 packet.*/
R15_Header_t Header;
- /** Poiter to meta data for allocated buffer for handling R15 packet.*/
+ /** Pointer to meta data for allocated buffer for handling R15 packet.*/
PacketMeta_t *Packet_p;
- /** Number of packets before receiver is stoped. */
+ /** Number of packets before receiver is stopped. */
uint8 PacketsBeforeReceiverStop;
/** Indicator for stopping the receiver. */
boolean StopTransfer;