There is no English word "transfert". Fix all the typos.
authorJaFojtik
Fri, 03 Feb 2012 21:15:22 +0100
changeset 694 8dd1e58b3815
parent 692 6818cc935ab1
child 695 0271f08ba819
There is no English word "transfert". Fix all the typos.
configure
include/AT91/Atmel/lib_AT91SAM7X256.h
include/AT91/config.h
include/AVR/config.h
include/data.h
include/def.h
include/sdo.h
include/win32/config.h
src/sdo.c
--- a/configure	Thu Feb 02 19:22:49 2012 +0100
+++ b/configure	Fri Feb 03 21:15:22 2012 +0100
@@ -28,17 +28,17 @@
 # Number of can bus to use
 MAX_CAN_BUS_ID=1
 
-# max bytes to transmit by SDO Put 4 if you only support expedited transfert.
-#For a normal transfert, (usually for a string), put the maximum string size to transfer.
-SDO_MAX_LENGTH_TRANSFERT=32
-
-# For block transfert, number of segments transmitted at once.
+# max bytes to transmit by SDO Put 4 if you only support expedited transfer.
+#For a normal transfer, (usually for a string), put the maximum string size to transfer.
+SDO_MAX_LENGTH_TRANSFER=32
+
+# For block transfer, number of segments transmitted at once.
 # SDO_BLOCK_SIZE CAN frames must fit into the CAN Tx buffer
 SDO_BLOCK_SIZE=16
 
 # Number of SDO from differents nodes that the node can manage concurrently.
 #for a slave node, usually put 1.
-SDO_MAX_SIMULTANEOUS_TRANSFERTS=4
+SDO_MAX_SIMULTANEOUS_TRANSFERS=4
 
 # Used for NMTable[bus][nodeId]
 # You can put less of 128 if on the netwo
@@ -125,9 +125,9 @@
 			echo "On user request: LSS FastScan service enabled";;
 	--debug=*)	DEBUG=$optarg;;
 	--MAX_CAN_BUS_ID=*)	MAX_CAN_BUS_ID=$optarg;;
-	--SDO_MAX_LENGTH_TRANSFERT=*)	SDO_MAX_LENGTH_TRANSFERT=$optarg;;
+	--SDO_MAX_LENGTH_TRANSFER=*)	SDO_MAX_LENGTH_TRANSFER=$optarg;;
 	--SDO_BLOCK_SIZE=*)	SDO_BLOCK_SIZE=$optarg;;
-	--SDO_MAX_SIMULTANEOUS_TRANSFERTS=*)	SDO_MAX_SIMULTANEOUS_TRANSFERTS=$optarg;;
+	--SDO_MAX_SIMULTANEOUS_TRANSFERS=*)	SDO_MAX_SIMULTANEOUS_TRANSFERS=$optarg;;
 	--NMT_MAX_NODE_ID=*)	NMT_MAX_NODE_ID=$optarg;;
 	--SDO_TIMEOUT_MS=*)	SDO_TIMEOUT_MS=$optarg;;
 	--CANOPEN_BIG_ENDIAN=*)	CANOPEN_BIG_ENDIAN=$optarg;;
@@ -183,9 +183,9 @@
 		echo
 		echo	"Stack compilation constants"
 		echo	" --MAX_CAN_BUS_ID [=1] Number of can bus to use"
-		echo	" --SDO_MAX_LENGTH_TRANSFERT [=32] max bytes to transmit by SDO"
-		echo	" --SDO_BLOCK_SIZE [=16] max CAN frames transmitted at once for block transfert"
-		echo	" --SDO_MAX_SIMULTANEOUS_TRANSFERTS [=4] Number of SDO that the node can manage concurrently"
+		echo	" --SDO_MAX_LENGTH_TRANSFER [=32] max bytes to transmit by SDO"
+		echo	" --SDO_BLOCK_SIZE [=16] max CAN frames transmitted at once for block transfer"
+		echo	" --SDO_MAX_SIMULTANEOUS_TRANSFERS [=4] Number of SDO that the node can manage concurrently"
 		echo	" --NMT_MAX_NODE_ID [=128] can be reduced to gain memory on small network"
 		echo	" --SDO_TIMEOUT_MS [=3000] Timeout in milliseconds for SDO (None to disable the feature)"
 		echo	" --EMCY_MAX_ERRORS [=8] Max number of active errors managed in error_data structure"
@@ -672,9 +672,9 @@
 echo "" >> include/config.h
 for i in \
  MAX_CAN_BUS_ID\
- SDO_MAX_LENGTH_TRANSFERT\
+ SDO_MAX_LENGTH_TRANSFER\
  SDO_BLOCK_SIZE\
- SDO_MAX_SIMULTANEOUS_TRANSFERTS\
+ SDO_MAX_SIMULTANEOUS_TRANSFERS\
  NMT_MAX_NODE_ID\
  SDO_TIMEOUT_MS\
  MAX_NB_TIMER\
@@ -695,7 +695,7 @@
 echo "" >> include/config.h
 
 for i in \
- SDO_MAX_SIMULTANEOUS_TRANSFERTS\
+ SDO_MAX_SIMULTANEOUS_TRANSFERS\
  NMT_MAX_NODE_ID\
  EMCY_MAX_ERRORS; do
 	echo "#define REPEAT_"$i"_TIMES(repeat)\\">> include/config.h
--- a/include/AT91/Atmel/lib_AT91SAM7X256.h	Thu Feb 02 19:22:49 2012 +0100
+++ b/include/AT91/Atmel/lib_AT91SAM7X256.h	Fri Feb 03 21:15:22 2012 +0100
@@ -1867,7 +1867,7 @@
 
 //*----------------------------------------------------------------------------
 //* \fn    AT91F_SPI_Close
-//* \brief Close SPI: disable IT disable transfert, close PDC
+//* \brief Close SPI: disable IT disable transfer, close PDC
 //*----------------------------------------------------------------------------
 __inline void AT91F_SPI_Close (
 	AT91PS_SPI pSPI)     // \arg pointer to a SPI controller
--- a/include/AT91/config.h	Thu Feb 02 19:22:49 2012 +0100
+++ b/include/AT91/config.h	Fri Feb 03 21:15:22 2012 +0100
@@ -51,8 +51,8 @@
 
 // Needed defines by Canfestival lib
 #define MAX_CAN_BUS_ID 1
-#define SDO_MAX_LENGTH_TRANSFERT 32
-#define SDO_MAX_SIMULTANEOUS_TRANSFERTS 1
+#define SDO_MAX_LENGTH_TRANSFER 32
+#define SDO_MAX_SIMULTANEOUS_TRANSFERS 1
 #define NMT_MAX_NODE_ID 128
 #define SDO_TIMEOUT_MS 3000U
 #define MAX_NB_TIMER 8
@@ -62,7 +62,7 @@
 
 #define US_TO_TIMEVAL_FACTOR 8
 
-#define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERTS_TIMES(repeat)\
+#define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERS_TIMES(repeat)\
 repeat
 #define REPEAT_NMT_MAX_NODE_ID_TIMES(repeat)\
 repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat
--- a/include/AVR/config.h	Thu Feb 02 19:22:49 2012 +0100
+++ b/include/AVR/config.h	Fri Feb 03 21:15:22 2012 +0100
@@ -48,9 +48,9 @@
 
 // Needed defines by Canfestival lib
 #define MAX_CAN_BUS_ID 1
-#define SDO_MAX_LENGTH_TRANSFERT 32
+#define SDO_MAX_LENGTH_TRANSFER 32
 #define SDO_BLOCK_SIZE 16
-#define SDO_MAX_SIMULTANEOUS_TRANSFERTS 1
+#define SDO_MAX_SIMULTANEOUS_TRANSFERS 1
 #define NMT_MAX_NODE_ID 128
 #define SDO_TIMEOUT_MS 3000U
 #define MAX_NB_TIMER 8
@@ -60,7 +60,7 @@
 
 #define US_TO_TIMEVAL_FACTOR 8
 
-#define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERTS_TIMES(repeat)\
+#define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERS_TIMES(repeat)\
 repeat
 #define REPEAT_NMT_MAX_NODE_ID_TIMES(repeat)\
 repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat
--- a/include/data.h	Thu Feb 02 19:22:49 2012 +0100
+++ b/include/data.h	Fri Feb 03 21:15:22 2012 +0100
@@ -67,7 +67,7 @@
 	valueRangeTest_t valueRangeTest;
 	
 	/* SDO */
-	s_transfer transfers[SDO_MAX_SIMULTANEOUS_TRANSFERTS];
+	s_transfer transfers[SDO_MAX_SIMULTANEOUS_TRANSFERS];
 	/* s_sdo_parameter *sdo_parameters; */
 
 	/* State machine */
@@ -251,7 +251,7 @@
 	\
 	/* SDO, structure s_transfer */\
 	{\
-          REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERTS_TIMES(s_transfer_Initializer)\
+          REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERS_TIMES(s_transfer_Initializer)\
 	},\
 	\
 	/* State machine*/\
--- a/include/def.h	Thu Feb 02 19:22:49 2012 +0100
+++ b/include/def.h	Fri Feb 03 21:15:22 2012 +0100
@@ -42,7 +42,7 @@
  */
 #define SDOABT_TOGGLE_NOT_ALTERNED   0x05030000
 #define SDOABT_TIMED_OUT             0x05040000
-#define SDOABT_OUT_OF_MEMORY         0x05040005 /* Size data exceed SDO_MAX_LENGTH_TRANSFERT */
+#define SDOABT_OUT_OF_MEMORY         0x05040005 /* Size data exceed SDO_MAX_LENGTH_TRANSFER */
 #define SDOABT_GENERAL_ERROR         0x08000000 /* Error size of SDO message */
 #define SDOABT_LOCAL_CTRL_ERROR      0x08000021 
 
@@ -82,7 +82,7 @@
  */
 #define SDO_PROVIDED_BUFFER_TOO_SMALL   0x8A
 
-/* Status of the node during the SDO transfert : */
+/* Status of the node during the SDO transfer : */
 #define SDO_SERVER  0x1
 #define SDO_CLIENT  0x2
 #define SDO_UNKNOWN 0x3             
--- a/include/sdo.h	Thu Feb 02 19:22:49 2012 +0100
+++ b/include/sdo.h	Fri Feb 03 21:15:22 2012 +0100
@@ -71,7 +71,7 @@
                               * WARNING s_transfer.data is subject to ENDIANISATION
                               * (with respect to CANOPEN_BIG_ENDIAN)
                               */
-  UNS8           data [SDO_MAX_LENGTH_TRANSFERT];
+  UNS8           data [SDO_MAX_LENGTH_TRANSFER];
 #ifdef SDO_DYNAMIC_BUFFER_ALLOCATION
   UNS8           *dynamicData;
   UNS32          dynamicDataSize;
@@ -120,7 +120,7 @@
 
 
 /** 
- * @brief Copy the data received from the SDO line transfert to the object dictionary.
+ * @brief Copy the data received from the SDO line transfer to the object dictionary.
  * @param *d Pointer on a CAN object data structure
  * @param line SDO line
  * @return SDO error code if error. Else, returns 0.
@@ -128,7 +128,7 @@
 UNS32 SDOlineToObjdict (CO_Data* d, UNS8 line);
 
 /** 
- * @brief Copy the data from the object dictionary to the SDO line for a network transfert.
+ * @brief Copy the data from the object dictionary to the SDO line for a network transfer.
  * @param *d Pointer on a CAN object data structure
  * @param line SDO line
  * @return SDO error code if error. Else, returns 0.
@@ -288,7 +288,7 @@
  * @param *m Pointer on a CAN message structure 
  * @return code : 
  * 		   - 0xFF if error
- *         - 0x80 if transfert aborted by the server
+ *         - 0x80 if transfer aborted by the server
  *         - 0x0  ok
  */
 UNS8 proceedSDO (CO_Data* d, Message *m);
@@ -421,8 +421,8 @@
  * 
  * @return
  *           - SDO_FINISHED             // datas are available
- *           - SDO_ABORTED_RCV          // Transfert failed (abort SDO received)
- *           - SDO_ABORTED_INTERNAL     // Transfert failed (internal abort)
+ *           - SDO_ABORTED_RCV          // Transfer failed (abort SDO received)
+ *           - SDO_ABORTED_INTERNAL     // Transfer failed (internal abort)
  *           - SDO_UPLOAD_IN_PROGRESS   // Datas are not yet available
  *           - SDO_DOWNLOAD_IN_PROGRESS // Download is in progress
  *           - SDO_PROVIDED_BUFFER_TOO_SMALL //The value *size is not enough to store the received data
@@ -449,8 +449,8 @@
  * 
  * @return : 
  *           - SDO_FINISHED             // datas are available
- *           - SDO_ABORTED_RCV          // Transfert failed (abort SDO received)
- *           - SDO_ABORTED_INTERNAL     // Transfert failed (Internal abort)
+ *           - SDO_ABORTED_RCV          // Transfer failed (abort SDO received)
+ *           - SDO_ABORTED_INTERNAL     // Transfer failed (Internal abort)
  *           - SDO_DOWNLOAD_IN_PROGRESS // Datas are not yet available
  *           - SDO_UPLOAD_IN_PROGRESS   // Upload in progress
  * \n\n
--- a/include/win32/config.h	Thu Feb 02 19:22:49 2012 +0100
+++ b/include/win32/config.h	Fri Feb 03 21:15:22 2012 +0100
@@ -25,10 +25,10 @@
 #define CO_ENABLE_LSS
 
 #define MAX_CAN_BUS_ID 1
-#define SDO_DYNAMIC_BUFFER_ALLOCATION //New define, if SDO_MAX_LENGTH_TRANSFERT is exceeded allocate data buffer dynamically
+#define SDO_DYNAMIC_BUFFER_ALLOCATION //New define, if SDO_MAX_LENGTH_TRANSFER is exceeded allocate data buffer dynamically
 #define SDO_DYNAMIC_BUFFER_ALLOCATION_SIZE (1024 * 128)
-#define SDO_MAX_LENGTH_TRANSFERT 32
-#define SDO_MAX_SIMULTANEOUS_TRANSFERTS 32
+#define SDO_MAX_LENGTH_TRANSFER 32
+#define SDO_MAX_SIMULTANEOUS_TRANSFERS 32
 #define NMT_MAX_NODE_ID 128
 #define SDO_TIMEOUT_MS 3000
 #define MAX_NB_TIMER 32
@@ -41,7 +41,7 @@
 #define LSS_TIMEOUT_MS 1000
 #define LSS_FS_TIMEOUT_MS 100
 
-#define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERTS_TIMES(repeat)\
+#define REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERS_TIMES(repeat)\
 repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat
 #define REPEAT_NMT_MAX_NODE_ID_TIMES(repeat)\
 repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat repeat
--- a/src/sdo.c	Thu Feb 02 19:22:49 2012 +0100
+++ b/src/sdo.c	Fri Feb 03 21:15:22 2012 +0100
@@ -123,7 +123,7 @@
 */
 #define getSDOsubIndex(byte3) (byte3)
 
-/** Returns the subcommand in SDO block transfert
+/** Returns the subcommand in SDO block transfer
 */
 #define getSDOblockSC(byte) (byte & 3)
 
@@ -188,7 +188,7 @@
 	UNS8 j;
 
 	/* transfer structure initialization */
-	for (j = 0 ; j < SDO_MAX_SIMULTANEOUS_TRANSFERTS ; j++)
+	for (j = 0 ; j < SDO_MAX_SIMULTANEOUS_TRANSFERS ; j++)
 		resetSDOline(d, j);
 }
 
@@ -211,7 +211,7 @@
 	size = d->transfers[line].count;
 
 #ifdef SDO_DYNAMIC_BUFFER_ALLOCATION
-	if (size > SDO_MAX_LENGTH_TRANSFERT)
+	if (size > SDO_MAX_LENGTH_TRANSFER)
 	{
 		errorCode = setODentry(d, d->transfers[line].index, d->transfers[line].subIndex,
 				(void *) d->transfers[line].dynamicData, &size, 1);
@@ -243,7 +243,7 @@
  **/
 UNS32 objdictToSDOline (CO_Data* d, UNS8 line)
 {
-    UNS32  size = SDO_MAX_LENGTH_TRANSFERT;
+    UNS32  size = SDO_MAX_LENGTH_TRANSFER;
 	UNS8  dataType;
 	UNS32 errorCode;
 
@@ -304,8 +304,8 @@
 	UNS32 offset;
 
 #ifndef SDO_DYNAMIC_BUFFER_ALLOCATION
-	if ((d->transfers[line].offset + nbBytes) > SDO_MAX_LENGTH_TRANSFERT) {
-		MSG_ERR(0x1A10,"SDO Size of data too large. Exceed SDO_MAX_LENGTH_TRANSFERT", nbBytes);
+	if ((d->transfers[line].offset + nbBytes) > SDO_MAX_LENGTH_TRANSFER) {
+		MSG_ERR(0x1A10,"SDO Size of data too large. Exceed SDO_MAX_LENGTH_TRANSFER", nbBytes);
 		return 0xFF;
 	}
 #endif //SDO_DYNAMIC_BUFFER_ALLOCATION
@@ -316,7 +316,7 @@
 	}
 	offset = d->transfers[line].offset;
 #ifdef SDO_DYNAMIC_BUFFER_ALLOCATION
-	if (d->transfers[line].count <= SDO_MAX_LENGTH_TRANSFERT)
+	if (d->transfers[line].count <= SDO_MAX_LENGTH_TRANSFER)
 	{
 		for (i = 0 ; i < nbBytes ; i++)
 			* (data + i) = d->transfers[line].data[offset + i];
@@ -354,8 +354,8 @@
 	UNS8 i;
 	UNS32 offset;
 #ifndef SDO_DYNAMIC_BUFFER_ALLOCATION
-	if ((d->transfers[line].offset + nbBytes) > SDO_MAX_LENGTH_TRANSFERT) {
-		MSG_ERR(0x1A15,"SDO Size of data too large. Exceed SDO_MAX_LENGTH_TRANSFERT", nbBytes);
+	if ((d->transfers[line].offset + nbBytes) > SDO_MAX_LENGTH_TRANSFER) {
+		MSG_ERR(0x1A15,"SDO Size of data too large. Exceed SDO_MAX_LENGTH_TRANSFER", nbBytes);
 		return 0xFF;
 	}
 #endif //SDO_DYNAMIC_BUFFER_ALLOCATION
@@ -364,7 +364,7 @@
 #ifdef SDO_DYNAMIC_BUFFER_ALLOCATION
 	{
 		UNS8* lineData = d->transfers[line].data;
-		if ((d->transfers[line].offset + nbBytes) > SDO_MAX_LENGTH_TRANSFERT) {
+		if ((d->transfers[line].offset + nbBytes) > SDO_MAX_LENGTH_TRANSFER) {
 			if (d->transfers[line].dynamicData == NULL) {
 				d->transfers[line].dynamicData = (UNS8*) malloc(SDO_DYNAMIC_BUFFER_ALLOCATION_SIZE);
 				d->transfers[line].dynamicDataSize = SDO_DYNAMIC_BUFFER_ALLOCATION_SIZE;
@@ -450,7 +450,7 @@
 	UNS32 i;
 	MSG_WAR(0x3A25, "reset SDO line nb : ", line);
 	initSDOline(d, line, 0, 0, 0, SDO_RESET);
-	for (i = 0 ; i < SDO_MAX_LENGTH_TRANSFERT ; i++)
+	for (i = 0 ; i < SDO_MAX_LENGTH_TRANSFER ; i++)
 		d->transfers[line].data[i] = 0;
 	d->transfers[line].whoami = 0;
 	d->transfers[line].abortCode = 0;
@@ -516,7 +516,7 @@
 
 	UNS8 i;
 
-	for (i = 0 ; i < SDO_MAX_SIMULTANEOUS_TRANSFERTS ; i++){
+	for (i = 0 ; i < SDO_MAX_SIMULTANEOUS_TRANSFERS ; i++){
 		if ( d->transfers[i].state == SDO_RESET ) {
 			*line = i;
 			d->transfers[i].whoami = whoami;
@@ -542,7 +542,7 @@
 
 	UNS8 i;
 
-	for (i = 0 ; i < SDO_MAX_SIMULTANEOUS_TRANSFERTS ; i++){
+	for (i = 0 ; i < SDO_MAX_SIMULTANEOUS_TRANSFERS ; i++){
 		if ( (d->transfers[i].state != SDO_RESET) &&
 				(d->transfers[i].state != SDO_ABORTED_INTERNAL) &&
 				(d->transfers[i].CliServNbr == CliServNbr) &&
@@ -569,7 +569,7 @@
 
 	UNS8 i;
 
-	for (i = 0 ; i < SDO_MAX_SIMULTANEOUS_TRANSFERTS ; i++){
+	for (i = 0 ; i < SDO_MAX_SIMULTANEOUS_TRANSFERS ; i++){
 		if ( (d->transfers[i].state != SDO_RESET) &&
 				(d->transfers[i].CliServNbr == CliServNbr) &&
 				(d->transfers[i].whoami == whoami) ) {
@@ -639,8 +639,8 @@
 UNS8 setSDOlineRestBytes (CO_Data* d, UNS8 line, UNS32 nbBytes)
 {
 #ifndef SDO_DYNAMIC_BUFFER_ALLOCATION
-	if (nbBytes > SDO_MAX_LENGTH_TRANSFERT) {
-		MSG_ERR(0x1A35,"SDO Size of data too large. Exceed SDO_MAX_LENGTH_TRANSFERT", nbBytes);
+	if (nbBytes > SDO_MAX_LENGTH_TRANSFER) {
+		MSG_ERR(0x1A35,"SDO Size of data too large. Exceed SDO_MAX_LENGTH_TRANSFER", nbBytes);
 		return 0xFF;
 	}
 #endif //SDO_DYNAMIC_BUFFER_ALLOCATION
@@ -761,10 +761,10 @@
 	UNS32 *pCobId = NULL;
 	UNS16 offset;
 	UNS16 lastIndex;
-	UNS8 SubCommand;	/* Block transfert only */
-    UNS8 SeqNo;         /* Sequence number in block transfert */
+	UNS8 SubCommand;	/* Block transfer only */
+    UNS8 SeqNo;         /* Sequence number in block transfer */
     UNS8 AckSeq;        /* Sequence number of last segment that was received successfully */
-	UNS8 NbBytesNoData; /* Number of bytes that do not contain data in last segment of block transfert */ 
+	UNS8 NbBytesNoData; /* Number of bytes that do not contain data in last segment of block transfer */ 
 
 	MSG_WAR(0x3A60, "proceedSDO ", 0);
 	whoami = SDO_UNKNOWN;
@@ -833,12 +833,12 @@
 		MSG_WAR(0x3A69, "I am SERVER number ", CliServNbr);
 	}
 
-	/* Look for an SDO transfert already initiated. */
+	/* Look for an SDO transfer already initiated. */
 	err = getSDOlineOnUse( d, CliServNbr, whoami, &line );
 
 	/* Let's find cs value, first it is set as "not valid" */
 	cs = 0xFF; 
-	/* Special cases for block transfert : in frames with segment data cs is not spécified */
+	/* Special cases for block transfer : in frames with segment data cs is not spécified */
    	if (!err) {
 		if ((whoami == SDO_SERVER) && (d->transfers[line].state == SDO_BLOCK_DOWNLOAD_IN_PROGRESS) ||
 			(whoami == SDO_CLIENT) && (d->transfers[line].state == SDO_BLOCK_UPLOAD_IN_PROGRESS)) {		
@@ -860,7 +860,7 @@
 		case 0:
 			/* I am SERVER */
 			if (whoami == SDO_SERVER) {
-				/* Receiving a download segment data : an SDO transfert should have been yet initiated. */
+				/* Receiving a download segment data : an SDO transfer should have been yet initiated. */
 				if (!err)
 					err = d->transfers[line].state != SDO_DOWNLOAD_IN_PROGRESS;
 				if (err) {
@@ -882,7 +882,7 @@
 				}
 				/* Nb of data to be downloaded */
 				nbBytes = 7 - getSDOn3(m->data[0]);
-				/* Store the data in the transfert structure. */
+				/* Store the data in the transfer structure. */
 				err = SDOtoLine(d, line, nbBytes, (*m).data + 1);
 				if (err) {
 					failedSDO(d, CliServNbr, whoami, index, subIndex, SDOABT_GENERAL_ERROR);
@@ -973,7 +973,7 @@
 				MSG_WAR(0x3A80, "Writing at index : ", index);
 				MSG_WAR(0x3A80, "Writing at subIndex : ", subIndex);
 
-				/* Search if a SDO transfert have been yet initiated */
+				/* Search if a SDO transfer have been yet initiated */
 				if (! err) {
 					MSG_ERR(0x1A81, "SDO error : Transmission yet started.", 0);
 					failedSDO(d, CliServNbr, whoami, index, subIndex, SDOABT_LOCAL_CTRL_ERROR);
@@ -1001,9 +1001,9 @@
 						return 0xFF;
 					}
 
-					/* SDO expedited -> transfert finished. Data can be stored in the dictionary. */
+					/* SDO expedited -> transfer finished. Data can be stored in the dictionary. */
 					/*The line will be reseted when it is downloading in the dictionary. */
-					MSG_WAR(0x3A83, "SDO Initiate Download is an expedited transfert. Finished. ", 0);
+					MSG_WAR(0x3A83, "SDO Initiate Download is an expedited transfer. Finished. ", 0);
 					/* Transfering line data to object dictionary. */
 					errorCode = SDOlineToObjdict(d, line);
 					if (errorCode) {
@@ -1014,7 +1014,7 @@
 					/* Release of the line. */
 					resetSDOline(d, line);
 				}
-				else {/* So, if it is not an expedited transfert */
+				else {/* So, if it is not an expedited transfer */
 					if (getSDOs(m->data[0])) {
 						nbBytes = (m->data[4]) + ((UNS32)(m->data[5])<<8) + ((UNS32)(m->data[6])<<16) + ((UNS32)(m->data[7])<<24);
 						err = setSDOlineRestBytes(d, line, nbBytes);
@@ -1103,7 +1103,7 @@
 						CliServNbr);
 				MSG_WAR(0x3A90, "Reading at index : ", index);
 				MSG_WAR(0x3A91, "Reading at subIndex : ", subIndex);
-				/* Search if a SDO transfert have been yet initiated*/
+				/* Search if a SDO transfer have been yet initiated*/
 				if (! err) {
 					MSG_ERR(0x1A92, "SDO error : Transmission yet started at line : ", line);
 					MSG_WAR(0x3A93, "Server Nbr = ", CliServNbr);
@@ -1131,7 +1131,7 @@
 				/* Preparing the response.*/
 				getSDOlineRestBytes(d, line, &nbBytes);	/* Nb bytes to transfer ? */
 				if (nbBytes > 4) {
-					/* normal transfert. (segmented). */
+					/* normal transfer. (segmented). */
 					/* code to send the initiate upload response. (cs = 2) */
 					data[0] = (2 << 5) | 1;
 					data[1] = index & 0xFF;        /* LSB */
@@ -1189,7 +1189,7 @@
 						failedSDO(d, CliServNbr, whoami, index, subIndex, SDOABT_GENERAL_ERROR);
 						return 0xFF;
 					}
-					/* SDO expedited -> transfert finished. data are available via  getReadResultNetworkDict(). */
+					/* SDO expedited -> transfer finished. data are available via  getReadResultNetworkDict(). */
 					MSG_WAR(0x3A98, "SDO expedited upload finished. Response received from node : ", nodeId);
 					StopSDO_TIMER(line)
 						d->transfers[line].count = nbBytes;
@@ -1197,7 +1197,7 @@
 					if(d->transfers[line].Callback) (*d->transfers[line].Callback)(d,nodeId);
 					return 0;
 				}
-				else { /* So, if it is not an expedited transfert */
+				else { /* So, if it is not an expedited transfer */
 					/* Storing the nb of data to receive. */
 					if (getSDOs(m->data[0])) {
 						nbBytes = m->data[4] + ((UNS32)(m->data[5])<<8) + ((UNS32)(m->data[6])<<16) + ((UNS32)(m->data[7])<<24);
@@ -1221,7 +1221,7 @@
 			/* I am SERVER */
 			if (whoami == SDO_SERVER) {
 				/* Receiving a upload segment. */
-				/* A SDO transfert should have been yet initiated. */
+				/* A SDO transfer should have been yet initiated. */
 				if (!err)
 					err = d->transfers[line].state != SDO_UPLOAD_IN_PROGRESS;
 				if (err) {
@@ -1366,7 +1366,7 @@
 						CliServNbr);
 				    MSG_WAR(0x3AB3, "Reading at index : ", index);
 				    MSG_WAR(0x3AB4, "Reading at subIndex : ", subIndex);
-				    /* Search if a SDO transfert have been yet initiated */
+				    /* Search if a SDO transfer have been yet initiated */
 				    if (! err) {
 					    MSG_ERR(0x1A93, "SDO error : Transmission yet started at line : ", line);
 					    MSG_WAR(0x3AB5, "Server Nbr = ", CliServNbr);
@@ -1408,7 +1408,7 @@
                 }
 				else if (SubCommand == SDO_BCS_END_UPLOAD_REQUEST) {
 				    MSG_WAR(0x3AA2, "Received SDO block END upload request defined at index 0x1200 + ", CliServNbr);
- 				    /* A SDO transfert should have been yet initiated. */
+ 				    /* A SDO transfer should have been yet initiated. */
 				    if (!err)
 					    err = d->transfers[line].state != SDO_BLOCK_UPLOAD_IN_PROGRESS;
 				    if (err) {
@@ -1421,7 +1421,7 @@
 					resetSDOline(d, line);
                 }
 				else if ((SubCommand == SDO_BCS_UPLOAD_RESPONSE) || (SubCommand == SDO_BCS_START_UPLOAD)) {
- 				    /* A SDO transfert should have been yet initiated. */
+ 				    /* A SDO transfer should have been yet initiated. */
 				    if (!err)
 					    err = d->transfers[line].state != SDO_BLOCK_UPLOAD_IN_PROGRESS;
 				    if (err) {
@@ -1636,7 +1636,7 @@
 					else {
 					   	if (SeqNo == (d->transfers[line].seqno + 1)) {	
 							d->transfers[line].seqno = SeqNo;
-							/* Store the data in the transfert structure. */
+							/* Store the data in the transfer structure. */
 							err = SDOtoLine(d, line, 7, (*m).data + 1);
 							if (err) {
 								failedSDO(d, CliServNbr, whoami, d->transfers[line].index,  d->transfers[line].subIndex, SDOABT_GENERAL_ERROR);
@@ -1664,7 +1664,7 @@
 					}
     		    	RestartSDO_TIMER(line)
 					NbBytesNoData = (m->data[0]>>2) & 0x07;
-					/* Store the data in the transfert structure. */
+					/* Store the data in the transfer structure. */
 					err = SDOtoLine(d, line, 7-NbBytesNoData, d->transfers[line].tmpData + 1);
 					if (err) {
 						failedSDO(d, CliServNbr, whoami, d->transfers[line].index,  d->transfers[line].subIndex, SDOABT_GENERAL_ERROR);
@@ -1736,7 +1736,7 @@
 					else {
 					   	if (SeqNo == (d->transfers[line].seqno + 1)) {	
 							d->transfers[line].seqno = SeqNo;
-							/* Store the data in the transfert structure. */
+							/* Store the data in the transfer structure. */
 							err = SDOtoLine(d, line, 7, (*m).data + 1);
 							if (err) {
 								failedSDO(d, CliServNbr, whoami, d->transfers[line].index,  d->transfers[line].subIndex, SDOABT_GENERAL_ERROR);
@@ -1762,7 +1762,7 @@
 	    				return 0xFF;
 					}
 					NbBytesNoData = (m->data[0]>>2) & 0x07;
-					/* Store the data in the transfert structure. */
+					/* Store the data in the transfer structure. */
 					err = SDOtoLine(d, line, 7-NbBytesNoData, d->transfers[line].tmpData + 1);
 					if (err) {
 						failedSDO(d, CliServNbr, whoami, d->transfers[line].index,  d->transfers[line].subIndex, SDOABT_GENERAL_ERROR);
@@ -1909,7 +1909,7 @@
 #ifdef SDO_DYNAMIC_BUFFER_ALLOCATION
 	{
 		UNS8* lineData = d->transfers[line].data;
-		if (count > SDO_MAX_LENGTH_TRANSFERT)
+		if (count > SDO_MAX_LENGTH_TRANSFER)
 		{
 			d->transfers[line].dynamicData = (UNS8*) malloc(count);
 			d->transfers[line].dynamicDataSize = count;
@@ -1952,13 +1952,13 @@
     }
     else {
 	    /* Send the SDO to the server. Initiate download, cs=1. */
-	    if (count <= 4) { /* Expedited transfert */
+	    if (count <= 4) { /* Expedited transfer */
 		    buf[0] = (UNS8)((1 << 5) | ((4 - count) << 2) | 3);
 		    for (i = 4 ; i < 8 ; i++)
 			    buf[i] = d->transfers[line].data[i - 4];
 		    d->transfers[line].offset = count;
 	    }
-	    else { /** Normal transfert */
+	    else { /** Normal transfer */
 		    buf[0] = (1 << 5) | 1;
 		    for (i = 0 ; i < 4 ; i++)
 			    buf[i+4] = (UNS8)((count >> (i<<3))); /* i*8 */
@@ -2267,7 +2267,7 @@
         return SDO_ABORTED_INTERNAL;
 	}
 
-    /* If transfert not finished just return, but if aborted set abort code and size to 0 */
+    /* If transfer not finished just return, but if aborted set abort code and size to 0 */
     if (d->transfers[line].state != SDO_FINISHED) {
 	    if((d->transfers[line].state == SDO_ABORTED_RCV) || (d->transfers[line].state == SDO_ABORTED_INTERNAL)) {
             *abortCode = d->transfers[line].abortCode;