@@ -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, ®_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));
0 commit comments