Skip to content

Commit e42d657

Browse files
committed
Fix codespell issues
1 parent 068f116 commit e42d657

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

src/rfal_rfst25r3916.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ ReturnCode RfalRfST25R3916Class::rfalStartTransceive(const rfalTransceiveContext
973973

974974
/* In AP2P check the field status */
975975
if (rfalIsModeActiveComm(gRFAL.mode)) {
976-
/* Disable our field upon a Rx reEnable, and start PPON2 manually */
976+
/* Disable our field upon a Rx re-enable, and start PPON2 manually */
977977
st25r3916TxOff();
978978
st25r3916ExecuteCommand(ST25R3916_CMD_START_PPON2_TIMER);
979979
}
@@ -1131,7 +1131,7 @@ ReturnCode RfalRfST25R3916Class::rfalGetTransceiveRSSI(uint16_t *rssi)
11311131
/*******************************************************************************/
11321132
/* Usage of SQRT from math.h and float. Due to compiler, resources or *
11331133
* performance issues sqrt is not enabled by default. Using a less accuracy *
1134-
* accurate aproach such as: average, max value, etc */
1134+
* accurate approach such as: average, max value, etc */
11351135

11361136
#ifdef RFAL_ACCURATE_RSSI
11371137
*rssi = (uint16_t) sqrt(((double)amRSSI * (double)amRSSI) + ((double)pmRSSI * (double)pmRSSI)); /* PRQA S 5209 # MISRA 4.9 - External function (sqrt()) requires double */
@@ -1194,7 +1194,7 @@ void RfalRfST25R3916Class::rfalErrorHandling(void)
11941194

11951195
/*******************************************************************************/
11961196
/* EMD Handling - Digital 2.1 4.1.1.1 ; EMVCo 3.0 4.9.2 ; ISO 14443-3 8.3 */
1197-
/* ReEnable the receiver on frames with a length < 4 bytes, upon: */
1197+
/* Re-enable the receiver on frames with a length < 4 bytes, upon: */
11981198
/* - Collision or Framing error detected */
11991199
/* - Residual bits are detected (hard framing error) */
12001200
/* - Parity error */
@@ -1215,7 +1215,7 @@ void RfalRfST25R3916Class::rfalErrorHandling(void)
12151215
((gRFAL.TxRx.status == ERR_RF_COLLISION) || (gRFAL.TxRx.status == ERR_FRAMING) ||
12161216
(gRFAL.TxRx.status == ERR_PAR) || (gRFAL.TxRx.status == ERR_CRC) ||
12171217
rxHasIncParError)) {
1218-
/* Ignore this reception, ReEnable receiver which also clears the FIFO */
1218+
/* Ignore this reception, Re-enable receiver which also clears the FIFO */
12191219
st25r3916ExecuteCommand(ST25R3916_CMD_UNMASK_RECEIVE_DATA);
12201220

12211221

@@ -1402,7 +1402,7 @@ void RfalRfST25R3916Class::rfalPrepareTransceive(void)
14021402
maskInterrupts |= (ST25R3916_IRQ_MASK_EOF | ST25R3916_IRQ_MASK_WU_F); /* Enable external Field interrupts to detect Link Loss and SENF_REQ auto responses */
14031403
}
14041404

1405-
/* In Active comms enable also External Field interrupts and set RF Collsion Avoidance */
1405+
/* In Active comms enable also External Field interrupts and set RF Collision Avoidance */
14061406
if (rfalIsModeActiveComm(gRFAL.mode)) {
14071407
maskInterrupts |= (ST25R3916_IRQ_MASK_EOF | ST25R3916_IRQ_MASK_EON | ST25R3916_IRQ_MASK_PPON2 | ST25R3916_IRQ_MASK_CAT | ST25R3916_IRQ_MASK_CAC);
14081408
/* Set n=0 for subsequent RF Collision Avoidance */
@@ -1808,7 +1808,7 @@ void RfalRfST25R3916Class::rfalTransceiveRx(void)
18081808
}
18091809

18101810
if ((irqs & ST25R3916_IRQ_MASK_RX_REST) != 0U) {
1811-
/* RX_REST indicates that Receiver has been reseted due to EMD, therefore a RXS + RXE should *
1811+
/* RX_REST indicates that Receiver has been reset due to EMD, therefore a RXS + RXE should *
18121812
* follow if a good reception is followed within the valid initial timeout */
18131813

18141814
/* Check whether NRT has expired already, if so signal a timeout */
@@ -2350,7 +2350,7 @@ ReturnCode RfalRfST25R3916Class::rfalISO14443AStartTransceiveAnticollisionFrame(
23502350
}
23512351

23522352
/*******************************************************************************/
2353-
/* Set speficic Analog Config for Anticolission if needed */
2353+
/* Set specific Analog Config for Anticollision if needed */
23542354
rfalSetAnalogConfig((RFAL_ANALOG_CONFIG_POLL | RFAL_ANALOG_CONFIG_TECH_NFCA | RFAL_ANALOG_CONFIG_BITRATE_COMMON | RFAL_ANALOG_CONFIG_ANTICOL));
23552355

23562356

@@ -2617,7 +2617,7 @@ ReturnCode RfalRfST25R3916Class::rfalGetFeliCaPollStatus(void)
26172617

26182618
/* Upon timeout the full Poll Delay + (Slot time)*(nbSlots) has expired */
26192619
if (ret != ERR_TIMEOUT) {
2620-
/* Reception done, reEnabled Rx for following Slot */
2620+
/* Reception done, re-enabled Rx for following Slot */
26212621
st25r3916ExecuteCommand(ST25R3916_CMD_UNMASK_RECEIVE_DATA);
26222622
st25r3916ExecuteCommand(ST25R3916_CMD_RESET_RXGAIN);
26232623
rfalFIFOStatusClear();
@@ -3425,7 +3425,7 @@ ReturnCode RfalRfST25R3916Class::rfalListenSetState(rfalLmState newSt)
34253425
st25r3916SetRegisterBits(ST25R3916_REG_OP_CONTROL, (ST25R3916_REG_OP_CONTROL_en | ST25R3916_REG_OP_CONTROL_rx_en));
34263426

34273427
if (!st25r3916CheckReg(ST25R3916_REG_AUX_DISPLAY, ST25R3916_REG_AUX_DISPLAY_osc_ok, ST25R3916_REG_AUX_DISPLAY_osc_ok)) {
3428-
/* Wait for Oscilator ready */
3428+
/* Wait for Oscillator ready */
34293429
if (st25r3916WaitForInterruptsTimed(ST25R3916_IRQ_MASK_OSC, ST25R3916_TOUT_OSC_STABLE) == 0U) {
34303430
ret = ERR_IO;
34313431
break;
@@ -3446,7 +3446,7 @@ ReturnCode RfalRfST25R3916Class::rfalListenSetState(rfalLmState newSt)
34463446
* Ensure that when upper layer calls SetState(IDLE), it restores initial
34473447
* configuration and that check whether an external Field is still present */
34483448
if ((gRFAL.Lm.mdMask & RFAL_LM_MASK_ACTIVE_P2P) != 0U) {
3449-
/* Ensure nfc_ar is reseted and back to only after Rx */
3449+
/* Ensure nfc_ar is reset and back to only after Rx */
34503450
st25r3916ExecuteCommand(ST25R3916_CMD_STOP);
34513451
st25r3916ChangeRegisterBits(ST25R3916_REG_MODE, ST25R3916_REG_MODE_nfc_ar_mask, ST25R3916_REG_MODE_nfc_ar_auto_rx);
34523452

@@ -3461,14 +3461,14 @@ ReturnCode RfalRfST25R3916Class::rfalListenSetState(rfalLmState newSt)
34613461
}
34623462
/*******************************************************************************/
34633463

3464-
/* If we are in ACTIVE_A, reEnable Listen for A before going to IDLE, otherwise do nothing */
3464+
/* If we are in ACTIVE_A, re-enable Listen for A before going to IDLE, otherwise do nothing */
34653465
if (gRFAL.Lm.state == RFAL_LM_STATE_ACTIVE_A) {
34663466
/* Enable automatic responses for A and Reset NFCA target state */
34673467
st25r3916ClrRegisterBits(ST25R3916_REG_PASSIVE_TARGET, (ST25R3916_REG_PASSIVE_TARGET_d_106_ac_a));
34683468
st25r3916ExecuteCommand(ST25R3916_CMD_GOTO_SENSE);
34693469
}
34703470

3471-
/* ReEnable the receiver */
3471+
/* Re-enable the receiver */
34723472
st25r3916ExecuteCommand(ST25R3916_CMD_CLEAR_FIFO);
34733473
st25r3916ExecuteCommand(ST25R3916_CMD_UNMASK_RECEIVE_DATA);
34743474

@@ -3496,7 +3496,7 @@ ReturnCode RfalRfST25R3916Class::rfalListenSetState(rfalLmState newSt)
34963496
ret = rfalSetMode(RFAL_MODE_LISTEN_NFCF, gRFAL.Lm.brDetected, gRFAL.Lm.brDetected);
34973497
gRFAL.state = RFAL_STATE_LM; /* Keep in Listen Mode */
34983498

3499-
/* ReEnable the receiver */
3499+
/* Re-enable the receiver */
35003500
st25r3916ExecuteCommand(ST25R3916_CMD_CLEAR_FIFO);
35013501
st25r3916ExecuteCommand(ST25R3916_CMD_UNMASK_RECEIVE_DATA);
35023502

@@ -3894,7 +3894,7 @@ uint16_t RfalRfST25R3916Class::rfalWakeUpModeFilter(uint16_t curRef, uint16_t cu
38943894

38953895
/* Perform the averaging|filter as describded in ST25R3916 DS */
38963896

3897-
/* Avoid signed arithmetics by spliting in two cases */
3897+
/* Avoid signed arithmetic by splitting in two cases */
38983898
if (curVal > curRef) {
38993899
newRef = curRef + ((curVal - curRef) / weight);
39003900

@@ -4242,7 +4242,7 @@ ReturnCode RfalRfST25R3916Class::rfalChipMeasureAmplitude(uint8_t *result)
42424242
st25r3916ReadRegister(ST25R3916_REG_AUX_MOD, &reg_auxmod);
42434243

42444244
/* Set values as per defaults of DS. These regs/bits influence receiver chain and change amplitude */
4245-
/* Doing so achieves an amplitude comparable over a complete polling cylce */
4245+
/* Doing so achieves an amplitude comparable over a complete polling cycle */
42464246
st25r3916WriteRegister(ST25R3916_REG_OP_CONTROL, (reg_opc & ~ST25R3916_REG_OP_CONTROL_rx_chn));
42474247
st25r3916WriteRegister(ST25R3916_REG_MODE, (ST25R3916_REG_MODE_om_iso14443a | ST25R3916_REG_MODE_targ_init |
42484248
ST25R3916_REG_MODE_tr_am_ook | ST25R3916_REG_MODE_nfc_ar_off));

src/rfal_rfst25r3916.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ typedef struct {
163163

164164
/*! Struct that holds counters to control the FIFO on Tx and Rx */
165165
typedef struct {
166-
uint16_t expWL; /*!< The amount of bytes expected to be Tx when a WL interrupt occours */
166+
uint16_t expWL; /*!< The amount of bytes expected to be Tx when a WL interrupt occurs */
167167
uint16_t bytesTotal; /*!< Total bytes to be transmitted OR the total bytes received */
168168
uint16_t bytesWritten;/*!< Amount of bytes already written on FIFO (Tx) OR read (RX) from FIFO and written on rxBuffer*/
169169
uint8_t status[ST25R3916_FIFO_STATUS_LEN]; /*!< FIFO Status Registers */
@@ -374,7 +374,7 @@ typedef void (*ST25R3916IrqHandler)(void);
374374
#endif /* RFAL_ST25R3916_AAT_SETTLE */
375375

376376
#ifndef RFAL_ST25R3916B_AAT_SETTLE
377-
#define RFAL_ST25R3916B_AAT_SETTLE ST25R3916_REG_MEAS_TX_DELAY_meas_tx_del_4_83ms/*!< Time between Oscilator stable and TX On in meas_tx_del steps */
377+
#define RFAL_ST25R3916B_AAT_SETTLE ST25R3916_REG_MEAS_TX_DELAY_meas_tx_del_4_83ms/*!< Time between Oscillator stable and TX On in meas_tx_del steps */
378378
#endif /* RFAL_ST25R3916B_AAT_SETTLE */
379379

380380

@@ -429,7 +429,7 @@ typedef void (*ST25R3916IrqHandler)(void);
429429
* ISO15693 2000 8.4 t1 MIN = 4192/fc
430430
* ISO15693 2009 9.1 t1 MIN = 4320/fc
431431
* Digital 2.1 B.5 FDTV,LISTEN,MIN = 4310/fc
432-
* Set FDT Listen one step earlier than on the more recent spec versions for greater interoprability
432+
* Set FDT Listen one step earlier than on the more recent spec versions for greater interoperability
433433
*/
434434
#define RFAL_FDT_LISTEN_V_ADJUSTMENT 64U
435435

src/st25r3916.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ ReturnCode RfalRfST25R3916Class::st25r3916CalibrateCapacitiveSensor(uint8_t *res
384384
/* Execute automatic calibration */
385385
ret = st25r3916ExecuteCommandAndGetResult(ST25R3916_CMD_CALIBRATE_C_SENSOR, ST25R3916_REG_CAP_SENSOR_RESULT, ST25R3916_TOUT_CALIBRATE_CAP_SENSOR, &res);
386386

387-
/* Check wether the calibration was successull */
387+
/* Check whether the calibration was successull */
388388
if (((res & ST25R3916_REG_CAP_SENSOR_RESULT_cs_cal_end) != ST25R3916_REG_CAP_SENSOR_RESULT_cs_cal_end) ||
389389
((res & ST25R3916_REG_CAP_SENSOR_RESULT_cs_cal_err) == ST25R3916_REG_CAP_SENSOR_RESULT_cs_cal_err) || (ret != ERR_NONE)) {
390390
return ERR_IO;

0 commit comments

Comments
 (0)