Skip to content

Commit 84d8f87

Browse files
committed
Fix codespell issues
1 parent b9b6b38 commit 84d8f87

28 files changed

+86
-85
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
fo
1+
fo
2+
Te

src/ndef_poller.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#define NDEF_NFCV_SUPPORTED_CMD_LEN 4U /*!< Ext sys info supported commands list length */
4141
#define NDEF_NFCV_UID_LEN 8U /*!< NFC-V UID length */
4242

43-
#define NDEF_SHORT_VFIELD_MAX_LEN 254U /*!< Max V-field length for 1-byte Lengh encoding */
43+
#define NDEF_SHORT_VFIELD_MAX_LEN 254U /*!< Max V-field length for 1-byte Length encoding */
4444
#define NDEF_TERMINATOR_TLV_LEN 1U /*!< Terminator TLV size */
4545
#define NDEF_TERMINATOR_TLV_T 0xFEU /*!< Terminator TLV T=FEh */
4646

@@ -49,7 +49,7 @@
4949

5050
#define NDEF_T3T_BLOCK_SIZE 16U /*!< size for a block in t3t */
5151
#define NDEF_T3T_MAX_NB_BLOCKS 4U /*!< size for a block in t3t */
52-
#define NDEF_T3T_BLOCK_NUM_MAX_SIZE 3U /*!< Maximun size for a block number */
52+
#define NDEF_T3T_BLOCK_NUM_MAX_SIZE 3U /*!< Maximum size for a block number */
5353
#define NDEF_T3T_MAX_RX_SIZE ((NDEF_T3T_BLOCK_SIZE*NDEF_T3T_MAX_NB_BLOCKS) + 13U) /*!< size for a CHECK Response 13 bytes (LEN+07h+NFCID2+Status+Nos) + (block size x Max Nob) */
5454
#define NDEF_T3T_MAX_TX_SIZE (((NDEF_T3T_BLOCK_SIZE + NDEF_T3T_BLOCK_NUM_MAX_SIZE) * NDEF_T3T_MAX_NB_BLOCKS) + 14U) \
5555
/*!< size for an UPDATE command, 11 bytes (LEN+08h+NFCID2+Nos) + 2 bytes for 1 SC + 1 byte for NoB + (block size + block num Len) x Max NoB */
@@ -207,7 +207,7 @@ typedef struct {
207207
typedef struct {
208208
uint8_t currentSecNo; /*!< Current sector number */
209209
uint8_t cacheBuf[NDEF_T2T_READ_RESP_SIZE]; /*!< Cache buffer */
210-
uint8_t nbrRsvdAreas; /*!< Number of reseved Areas */
210+
uint8_t nbrRsvdAreas; /*!< Number of reserved Areas */
211211
uint16_t dynLockNbrLockBits; /*!< Number of bits inside the DynLock_Area */
212212
uint16_t dynLockBytesLockedPerBit; /*!< Number of bytes locked by one Dynamic Lock bit */
213213
uint16_t dynLockNbrBytes; /*!< Number of bytes inside the DynLock_Area */
@@ -341,7 +341,7 @@ typedef struct ndefPollerWrapperStruct {
341341
*****************************************************************************
342342
* \brief Return the device type
343343
*
344-
* This funtion returns the device type from the context
344+
* This function returns the device type from the context
345345
*
346346
* \param[in] dev: ndef Device
347347
*

src/ndef_t2t.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686

8787
#define NDEF_T2T_DEF_BYTES_LCK_PER_BIT 8U /*!< Default nbr of bytes locked per bit for DynLock */
8888

89-
#define NDEF_T2T_WR_ACCESS_GRANTED 0x0U /*!< Write Accces 0h: Access granted w/o any security */
90-
#define NDEF_T2T_WR_ACCESS_NONE 0xFU /*!< Write Accces Fh: No access granted */
89+
#define NDEF_T2T_WR_ACCESS_GRANTED 0x0U /*!< Write Access 0h: Access granted w/o any security */
90+
#define NDEF_T2T_WR_ACCESS_NONE 0xFU /*!< Write Access Fh: No access granted */
9191

9292
#define NDEF_T2T_STATLOCK_OFFSET 10U /*!< Static Lock offset */
9393

src/ndef_t4t.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
#define NDEF_T4T_NLEN_LEN 2U /*!< NLEN LEN (mapping version v2.0): 2 bytes */
7777
#define NDEF_T4T_ENLEN_LEN 4U /*!< ENLEN LEN (mapping version v3.0): 4 bytes */
7878

79-
#define NDEF_T4T_MIN_NLEN 3U /*!< Minimun non null NLEN value. TS T4T v1.0 B */
79+
#define NDEF_T4T_MIN_NLEN 3U /*!< Minimum non null NLEN value. TS T4T v1.0 B */
8080

8181
#define NDEF_T4T_MV2_MAX_OFSSET 0x7FFFU /*!< ReadBinary maximum Offset (offset range 0000-7FFFh)*/
8282

@@ -719,7 +719,7 @@ ReturnCode ndefT4TPollerWriteRawMessage(ndefContext *ctx, const uint8_t *buf, ui
719719
}
720720

721721
/* TS T4T v1.0 7.2.3.3: check Mapping Version */
722-
/* Done automatically inside underlying fucntions */
722+
/* Done automatically inside underlying functions */
723723

724724
/* TS T4T v1.0 7.2.3.4/8 verify length of the NDEF message */
725725
ret = ndefT4TPollerCheckAvailableSpace(ctx, bufLen);

src/ndef_t4t.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@
3838
#define NDEF_T4T_MAPPING_VERSION_2_0 0x20U /*!< Mapping version 2.0 */
3939
#define NDEF_T4T_MAPPING_VERSION_3_0 0x30U /*!< Mapping version 3.0 */
4040

41-
/*! Minimun size for an APDU (corresponding to Select NDEF App) */
41+
/*! Minimum size for an APDU (corresponding to Select NDEF App) */
4242
#define NDEF_T4T_MIN_APDU_LEN 13U
4343

44-
/*! Maximun Response-APDU response body length (short field coding) */
44+
/*! Maximum Response-APDU response body length (short field coding) */
4545
#if RFAL_FEATURE_ISO_DEP_APDU_MAX_LEN > (256 + RFAL_T4T_MAX_RAPDU_SW1SW2_LEN)
4646
#define NDEF_T4T_MAX_RAPDU_BODY_LEN 256U
4747
#else
4848
#define NDEF_T4T_MAX_RAPDU_BODY_LEN (RFAL_FEATURE_ISO_DEP_APDU_MAX_LEN - RFAL_T4T_MAX_RAPDU_SW1SW2_LEN)
4949
#endif
5050

51-
/*! Maximun Command-APDU data length (short field coding) */
51+
/*! Maximum Command-APDU data length (short field coding) */
5252
#if RFAL_FEATURE_ISO_DEP_APDU_MAX_LEN > (255 + RFAL_T4T_MAX_CAPDU_PROLOGUE_LEN + RFAL_T4T_LC_LEN + RFAL_T4T_LE_LEN)
5353
#define NDEF_T4T_MAX_CAPDU_BODY_LEN 255U
5454
#else
@@ -293,7 +293,7 @@ ReturnCode ndefT4TPollerWriteBytes(ndefContext *ctx, uint32_t offset, const uint
293293
* \brief T4T Read raw NDEF message
294294
*
295295
* This method reads a raw NDEF message from the current selected file.
296-
* Prior to NDEF Read procedure, a successfull ndefT4TPollerNdefDetect()
296+
* Prior to NDEF Read procedure, a successful ndefT4TPollerNdefDetect()
297297
* has to be performed.
298298
*
299299
* \warning Current selected file must not be changed between NDEF Detect
@@ -322,7 +322,7 @@ ReturnCode ndefT4TPollerReadRawMessage(ndefContext *ctx, uint8_t *buf, uint32_t
322322
* \brief T4T Write raw NDEF message
323323
*
324324
* This method writes a raw NDEF message in the current selected file.
325-
* Prior to NDEF Write procedure, a successfull ndefT4TPollerNdefDetect()
325+
* Prior to NDEF Write procedure, a successful ndefT4TPollerNdefDetect()
326326
* has to be performed.
327327
*
328328
* \warning Current selected file must not be changed between NDEF Detect

src/ndef_t5t.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@
7272
#define NDEF_T5T_TLV_TERMINATOR 0xFEU /*!< TLV flag TERMINATOR value */
7373
#define NDEF_T5T_TLV_RFU 0x00U /*!< TLV flag RFU value */
7474

75-
#define NDEF_T5T_ACCESS_ALWAYS 0x0U /*!< Read/Write Accces. 00b: Always */
76-
#define NDEF_T5T_ACCESS_RFU 0x1U /*!< Read/Write Accces. 01b: RFU */
77-
#define NDEF_T5T_ACCESS_PROPRIETARY 0x2U /*!< Read/Write Accces. 00b: Proprietary */
78-
#define NDEF_T5T_ACCESS_NEVER 0x3U /*!< Read/Write Accces. 00b: Never */
75+
#define NDEF_T5T_ACCESS_ALWAYS 0x0U /*!< Read/Write Access. 00b: Always */
76+
#define NDEF_T5T_ACCESS_RFU 0x1U /*!< Read/Write Access. 01b: RFU */
77+
#define NDEF_T5T_ACCESS_PROPRIETARY 0x2U /*!< Read/Write Access. 00b: Proprietary */
78+
#define NDEF_T5T_ACCESS_NEVER 0x3U /*!< Read/Write Access. 00b: Never */
7979

8080

8181
/*

src/ndef_t5t.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
#define NDEF_CMDLIST_EXTGETMULTIPLEBLOCKSECSTATUS_POS (5U) /*!< Cmd List: ExtGetMultipleBlockSecStatus position */
7171
#define NDEF_CMDLIST_FASTEXTENDEDREADMULTIPLEBLOCKS_POS (6U) /*!< Cmd List: FastExtendedReadMultipleBlocks position */
7272

73-
#define NDEF_T5T_CC_MAGIC_1_BYTE_ADDR_MODE 0xE1U /*!< T5T CC Magic Number (1-byte Addres Mode) */
74-
#define NDEF_T5T_CC_MAGIC_2_BYTE_ADDR_MODE 0xE2U /*!< T5T CC Magic Number (2-byte Addres Mode) */
73+
#define NDEF_T5T_CC_MAGIC_1_BYTE_ADDR_MODE 0xE1U /*!< T5T CC Magic Number (1-byte Address Mode) */
74+
#define NDEF_T5T_CC_MAGIC_2_BYTE_ADDR_MODE 0xE2U /*!< T5T CC Magic Number (2-byte Address Mode) */
7575
#define NDEF_T5T_CC_LEN_4_BYTES 4U /*!< T5T CC Length (4 bytes) */
7676
#define NDEF_T5T_CC_LEN_8_BYTES 8U /*!< T5T CC Length (8 bytes) */
7777
#define NDEF_T5T_FORMAT_OPTION_NFC_FORUM 1U /*!< Format tag according to NFC Forum MLEN computation */
@@ -185,7 +185,7 @@ ReturnCode ndefT5TPollerSetAccessMode(ndefT5TAccessMode mode);
185185
* \brief Handle T5T NDEF context activation
186186
*
187187
* This method performs the initialisation of the NDEF context.
188-
* It must be called after a successfull
188+
* It must be called after a successful
189189
* anticollision procedure and prior to any NDEF procedures such as NDEF
190190
* detection procedure.
191191
*
@@ -270,7 +270,7 @@ ReturnCode ndefT5TPollerWriteBytes(ndefContext *ctx, uint32_t offset, const uint
270270
* \brief T5T Read raw NDEF message
271271
*
272272
* This method reads a raw NDEF message from the current selected file.
273-
* Prior to NDEF Read procedure, a successfull ndefT5TPollerNdefDetect()
273+
* Prior to NDEF Read procedure, a successful ndefT5TPollerNdefDetect()
274274
* has to be performed.
275275
*
276276
* \param[in] ctx : ndef Context
@@ -294,7 +294,7 @@ ReturnCode ndefT5TPollerReadRawMessage(ndefContext *ctx, uint8_t *buf, uint32_t
294294
* \brief T5T Write raw NDEF message
295295
*
296296
* This method writes a raw NDEF message in the current selected file.
297-
* Prior to NDEF Write procedure, a successfull ndefT5TPollerNdefDetect()
297+
* Prior to NDEF Write procedure, a successful ndefT5TPollerNdefDetect()
298298
* has to be performed.
299299
*
300300
* \param[in] ctx : ndef Context

src/ndef_t5t_hal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ bool ndefT5TisT5TDevice(const ndefDevice *dev);
9191
*
9292
* \param[in] ctx: ndef Context
9393
* \param[in] dev: ndef Device
94-
* \param[in] mode: Acces mode
94+
* \param[in] mode: Access mode
9595
*
9696
* \return ERR_PARAM : Invalid parameter
9797
* \return ERR_NONE : No error

src/ndef_type_bluetooth.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ typedef enum {
7777
b0: LE limited Discoverable Mode,
7878
b1: LE general Discoverable Mode,
7979
b2: BR/EDR not supported,
80-
b3: Simultaneous LE & BR/EDR Conroller,
80+
b3: Simultaneous LE & BR/EDR Controller,
8181
b4: Simultaneous LE & BR/EDR Host */
8282
#define NDEF_BT_EIR_SERVICE_CLASS_UUID_PARTIAL_16 0x02U /*!< Bluetooth service UUID on 16-bits (partial list) */
8383
#define NDEF_BT_EIR_SERVICE_CLASS_UUID_COMPLETE_16 0x03U /*!< Bluetooth service UUID on 16-bits (complete list) */
@@ -103,7 +103,7 @@ typedef enum {
103103
#define NDEF_BT_EIR_SERVICE_DATA 0x16U /*!< Service Data (2 or more octets): The first 2 octets contain the 16 bit Service UUID followed by additional service data */
104104
#define NDEF_BT_EIR_APPEARANCE 0x19U /*!< UUID for `Appearance`: The Appearance characteristic value shall be the enumerated value as defined by Bluetooth Assigned Numbers document */
105105
#define NDEF_BT_EIR_LE_DEVICE_ADDRESS 0x1BU /*!< 6 LSB bytes: Device address, 7th byte: Address type (Public/Random) */
106-
#define NDEF_BT_EIR_LE_ROLE 0x1CU /*!< Device Role: Periph only, Central only, Periph prefered, Central prefered */
106+
#define NDEF_BT_EIR_LE_ROLE 0x1CU /*!< Device Role: Periph only, Central only, Periph preferred, Central preferred */
107107
#define NDEF_BT_EIR_LE_SECURE_CONN_CONFIRMATION_VALUE 0x22U /*!< Secure Connection Confirmation value */
108108
#define NDEF_BT_EIR_LE_SECURE_CONN_RANDOM_VALUE 0x23U /*!< Secure Connection Random value */
109109
#define NDEF_BT_EIR_MANUFACTURER_DATA 0xFFU /*!< Manufacturer Specific Data (2 or more octets): The first 2 octets contain the Company Identifier Code followed by additional manufacturer specific data */
@@ -146,7 +146,7 @@ typedef struct {
146146

147147
ndefConstBuffer bufDeviceAddress; /*!< Device address, for BR/EDR only */
148148

149-
const uint8_t *eir[NDEF_BT_EIR_COUNT]; /*!< Array containg pointer to each EIR */
149+
const uint8_t *eir[NDEF_BT_EIR_COUNT]; /*!< Array containing pointer to each EIR */
150150

151151
} ndefTypeBluetooth;
152152

src/ndef_type_deviceinfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ ReturnCode ndefRtdDeviceInfoInit(ndefType *devInfo, const ndefDeviceInfoEntry *d
180180
}
181181

182182
/* Read Type, Length and Value fields */
183-
/* Not checking multiple occurences of a given field, use the last one */
183+
/* Not checking multiple occurrences of a given field, use the last one */
184184
count = 0;
185185
manufacturerNameIndex = 0;
186186
modelNameIndex = 0;
@@ -276,7 +276,7 @@ static ReturnCode ndefPayloadToRtdDeviceInfo(const ndefConstBuffer *bufDevInfo,
276276
}
277277

278278
/* Read Type, Length and Value fields */
279-
/* Not checking multiple occurences of a given field, use the last one */
279+
/* Not checking multiple occurrences of a given field, use the last one */
280280
offset = 0;
281281
count = 0;
282282
manufacturerNameIndex = 0;

src/ndef_type_uri.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ extern const ndefConstBuffer8 bufRtdTypeUri; /*! URI Record Type buffer
9191

9292
/*! RTD Type URI */
9393
typedef struct {
94-
uint8_t protocol; /*!< Protocol Idendifier */
94+
uint8_t protocol; /*!< Protocol Identifier */
9595
ndefConstBuffer bufUriString; /*!< URI string buffer */
9696
} ndefTypeRtdUri;
9797

src/ndef_type_wifi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const ndefConstBuffer8 bufMediaTypeWifi = { ndefMediaTypeWifi, sizeof(
5454
/*! Wifi OBB (WPS) */
5555

5656
#define NDEF_WIFI_DEFAULT_NETWORK_KEY "00000000" /*! Network key to be used when the Authentication is set to None.
57-
Althought WPS defines a 0-length network key in such case,
57+
Although WPS defines a 0-length network key in such case,
5858
a 8 digit value is required with tested phones. */
5959

6060
#define NDEF_WIFI_NETWORK_SSID_LENGTH 32U /*!< Network SSID length */
@@ -145,7 +145,7 @@ static uint8_t wifiConfigToken5[] = {
145145
/*****************************************************************************/
146146
/*! Manage a Wifi Out-Of-Band NDEF message, to start a communication based on Wifi.
147147
* The Wifi OOB format is described by the Wifi Protected Setup specification.
148-
* It consists in a list of data elements formated as type-length-value.
148+
* It consists in a list of data elements formatted as type-length-value.
149149
150150
The Wifi OOB in a NDEF record has the following structure:
151151
- Version
@@ -261,7 +261,7 @@ static const uint8_t *ndefWifiToPayloadItem(const ndefType *wifi, ndefConstBuffe
261261
case 4:
262262
/* Config Token3 */
263263

264-
/* Update Token3 with Autentication and Encryption Types */
264+
/* Update Token3 with Authentication and Encryption Types */
265265
wifiConfigToken3[CONFIG_TOKEN_3_AUTHENTICATION_TYPE_INDEX] = wifiData->authentication;
266266
wifiConfigToken3[CONFIG_TOKEN_3_ENCRYPTION_TYPE_INDEX] = wifiData->encryption;
267267

src/rfal_isoDep.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
******************************************************************************
4848
*/
4949
/* Feature switch may be enabled or disabled by user at rfal_platform.h
50-
* Default configuration (ST25R dependant) also provided at rfal_default_config.h
50+
* Default configuration (ST25R dependent) also provided at rfal_default_config.h
5151
*
5252
* RFAL_FEATURE_ISO_DEP
5353
*/
@@ -1112,7 +1112,7 @@ ReturnCode RfalNfcClass::rfalIsoDepListenGetActivationStatus(void)
11121112

11131113
/*******************************************************************************/
11141114
default: /* PRQA S 2003 # MISRA 16.3 - Intentional fall through */
1115-
/* ReEnable the receiver and wait for another frame */
1115+
/* Re-enable the receiver and wait for another frame */
11161116
isoDepReEnableRx((uint8_t *)gIsoDep.actvParam.rxBuf, sizeof(rfalIsoDepBufFormat), gIsoDep.actvParam.rxLen);
11171117

11181118
return ERR_BUSY;
@@ -1134,7 +1134,7 @@ ReturnCode RfalNfcClass::rfalIsoDepListenGetActivationStatus(void)
11341134
/* ISO 14443-4 5.3.2 Check for a valid PPS0 */
11351135
if (((((uint8_t *)gIsoDep.actvParam.rxBuf)[RFAL_ISODEP_PPS_STARTBYTE_POS] & RFAL_ISODEP_DID_MASK) != gIsoDep.did) ||
11361136
((((uint8_t *)gIsoDep.actvParam.rxBuf)[RFAL_ISODEP_PPS_PPS0_POS] & RFAL_ISODEP_PPS0_VALID_MASK) != RFAL_ISODEP_PPS0_PPS1_NOT_PRESENT)) {
1137-
/* Invalid DID on PPS request or Invalid PPS0, reEnable the receiver and wait another frame */
1137+
/* Invalid DID on PPS request or Invalid PPS0, re-enable the receiver and wait another frame */
11381138
isoDepReEnableRx((uint8_t *)gIsoDep.actvParam.rxBuf, sizeof(rfalIsoDepBufFormat), gIsoDep.actvParam.rxLen);
11391139

11401140
return ERR_BUSY;
@@ -1831,7 +1831,7 @@ ReturnCode RfalNfcClass::rfalIsoDepPollAGetActivationStatus(void)
18311831
rfalRfDev->rfalSetGT(rfalRfDev->rfalGetFDTPoll());
18321832
rfalRfDev->rfalFieldOnAndStartGT();
18331833

1834-
/* Send RATS retransmission */ /* PRQA S 4342 1 # MISRA 10.5 - Layout of enum rfalIsoDepFSxI is guaranteed whithin 4bit range */
1834+
/* Send RATS retransmission */ /* PRQA S 4342 1 # MISRA 10.5 - Layout of enum rfalIsoDepFSxI is guaranteed within 4bit range */
18351835
EXIT_ON_ERR(ret, rfalIsoDepStartRATS((rfalIsoDepFSxI)(uint8_t)(gIsoDep.actv.ratsReq.PARAM >> RFAL_ISODEP_RATS_PARAM_FSDI_SHIFT),
18361836
gIsoDep.did,
18371837
&gIsoDep.actvDev->activation.A.Listener.ATS,
@@ -1951,7 +1951,7 @@ ReturnCode RfalNfcClass::rfalIsoDepPollAGetActivationStatus(void)
19511951

19521952
ret = rfalIsoDepGetDeselectStatus();
19531953
if (ret != ERR_BUSY) {
1954-
/* Report activation failed with generic tranmission error */
1954+
/* Report activation failed with generic transmission error */
19551955
ret = ERR_FRAMING;
19561956
}
19571957
break;

0 commit comments

Comments
 (0)