From 6141e29cf9816a17a4e53c83b130b49fc6fe19e6 Mon Sep 17 00:00:00 2001 From: Davide QUARANTIELLO Date: Wed, 23 Sep 2026 09:58:45 +0200 Subject: [PATCH] fix codespell --- .../LSM6DSOX_FIFO_Interrupt_I2C.ino | 4 +- .../LSM6DSOX_FIFO_Polling_I2C.ino | 4 +- .../LSM6DSOX_HelloWorld_I2C.ino | 2 +- extras/codespell-ignore-words-list.txt | 8 ---- src/lsm6dsox_reg.c | 38 +++++++++---------- 5 files changed, 24 insertions(+), 32 deletions(-) diff --git a/examples/LSM6DSOX_FIFO_Interrupt_I2C/LSM6DSOX_FIFO_Interrupt_I2C.ino b/examples/LSM6DSOX_FIFO_Interrupt_I2C/LSM6DSOX_FIFO_Interrupt_I2C.ino index e909a32..46fc679 100644 --- a/examples/LSM6DSOX_FIFO_Interrupt_I2C/LSM6DSOX_FIFO_Interrupt_I2C.ino +++ b/examples/LSM6DSOX_FIFO_Interrupt_I2C/LSM6DSOX_FIFO_Interrupt_I2C.ino @@ -113,7 +113,7 @@ void setup() { /** Set FIFO operation mode. Available values are: * LSM6DSOX_BYPASS_MODE: FIFO is not used, the buffer content is cleared - * LSM6DSOX_FIFO_MODE: bufer continues filling until it becomes full. Then it stops collecting data. + * LSM6DSOX_FIFO_MODE: buffer continues filling until it becomes full. Then it stops collecting data. * LSM6DSOX_STREAM_MODE: continuous mode. Older data are replaced by the new data. * LSM6DSOX_STREAM_TO_FIFO_MODE: FIFO buffer starts operating in Continuous mode and switches to FIFO mode when an event condition occurs. * LSM6DSOX_BYPASS_TO_STREAM_MODE: FIFO buffer starts operating in Bypass mode and switches to Continuous mode when an event condition occurs. @@ -128,7 +128,7 @@ void setup() { // FIFO size can be limited to the watermark level by setting the STOP_ON_WTM flag to 1 lsm6dsoxSensor.Set_FIFO_Stop_On_Fth(1); - // start batching in continous mode + // start batching in continuous mode lsm6dsoxSensor.Set_FIFO_Mode(LSM6DSOX_STREAM_MODE); Serial.println("Starting..."); diff --git a/examples/LSM6DSOX_FIFO_Polling_I2C/LSM6DSOX_FIFO_Polling_I2C.ino b/examples/LSM6DSOX_FIFO_Polling_I2C/LSM6DSOX_FIFO_Polling_I2C.ino index cebc063..dd7b620 100644 --- a/examples/LSM6DSOX_FIFO_Polling_I2C/LSM6DSOX_FIFO_Polling_I2C.ino +++ b/examples/LSM6DSOX_FIFO_Polling_I2C/LSM6DSOX_FIFO_Polling_I2C.ino @@ -98,13 +98,13 @@ void setup() { /** Set FIFO operation mode. Available values are: * LSM6DSOX_BYPASS_MODE: FIFO is not used, the buffer content is cleared - * LSM6DSOX_FIFO_MODE: bufer continues filling until it becomes full. Then it stops collecting data. + * LSM6DSOX_FIFO_MODE: buffer continues filling until it becomes full. Then it stops collecting data. * LSM6DSOX_STREAM_MODE: continuous mode. Older data are replaced by the new data. * LSM6DSOX_STREAM_TO_FIFO_MODE: FIFO buffer starts operating in Continuous mode and switches to FIFO mode when an event condition occurs. * LSM6DSOX_BYPASS_TO_STREAM_MODE: FIFO buffer starts operating in Bypass mode and switches to Continuous mode when an event condition occurs. * */ lsm6dsoxSensor.Set_FIFO_Mode(LSM6DSOX_BYPASS_MODE); // flush any previous value in FIFO before start - lsm6dsoxSensor.Set_FIFO_Mode(LSM6DSOX_STREAM_MODE); // start batching in continous mode + lsm6dsoxSensor.Set_FIFO_Mode(LSM6DSOX_STREAM_MODE); // start batching in continuous mode // Set FIFO watermark level. Can be used to check when the number of samples in buffer reaches this defined threshold level. lsm6dsoxSensor.Set_FIFO_Watermark_Level(WTM_LV); diff --git a/examples/LSM6DSOX_HelloWorld_I2C/LSM6DSOX_HelloWorld_I2C.ino b/examples/LSM6DSOX_HelloWorld_I2C/LSM6DSOX_HelloWorld_I2C.ino index 271607c..273e69e 100644 --- a/examples/LSM6DSOX_HelloWorld_I2C/LSM6DSOX_HelloWorld_I2C.ino +++ b/examples/LSM6DSOX_HelloWorld_I2C/LSM6DSOX_HelloWorld_I2C.ino @@ -73,7 +73,7 @@ void setup() { // Set accelerometer scale at +- 2G. Available values are +- 2, 4, 8, 16 G lsm6dsoxSensor.Set_X_FS(2); - // Set gyroscope scale at +- 125 degres per second. Available values are +- 125, 250, 500, 1000, 2000 dps + // Set gyroscope scale at +- 125 degrees per second. Available values are +- 125, 250, 500, 1000, 2000 dps lsm6dsoxSensor.Set_G_FS(125); diff --git a/extras/codespell-ignore-words-list.txt b/extras/codespell-ignore-words-list.txt index 050e106..175b3af 100644 --- a/extras/codespell-ignore-words-list.txt +++ b/extras/codespell-ignore-words-list.txt @@ -1,10 +1,2 @@ -beetween -bufer -continous daa -degres -differencies -ingnore -interrup ois -usefull diff --git a/src/lsm6dsox_reg.c b/src/lsm6dsox_reg.c index aae3693..60f8b61 100644 --- a/src/lsm6dsox_reg.c +++ b/src/lsm6dsox_reg.c @@ -1588,7 +1588,7 @@ int32_t lsm6dsox_mlc_out_get(lsm6dsox_ctx_t *ctx, uint8_t *buff) /** * @defgroup LSM6DSOX_common - * @brief This section groups common usefull functions. + * @brief This section groups common useful functions. * @{ * */ @@ -3862,7 +3862,7 @@ int32_t lsm6dsox_i3c_disable_get(lsm6dsox_ctx_t *ctx, lsm6dsox_i3c_disable_t *va /** * @defgroup LSM6DSOX_interrupt_pins - * @brief This section groups all the functions that manage interrup pins + * @brief This section groups all the functions that manage interrupt pins * @{ * */ @@ -9177,10 +9177,10 @@ int32_t lsm6dsox_s4s_dt_get(lsm6dsox_ctx_t *ctx, uint8_t *val) /** * @brief Device "Who am I".[get] * - * @param ctx communication interface handler. Use NULL to ingnore + * @param ctx communication interface handler. Use NULL to ignore * this interface.(ptr) * @param aux_ctx auxiliary communication interface handler. Use NULL - * to ingnore this interface.(ptr) + * to ignore this interface.(ptr) * @param val ID values read from the two interfaces. ID values * will be the same.(ptr) * @@ -9209,7 +9209,7 @@ int32_t lsm6dsox_id_get(lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, * @param ctx communication interface handler.(ptr) * @param val re-initialization mode. Refer to datasheet * and application note for more information - * about differencies beetween boot and sw_reset + * about differences between boot and sw_reset * procedure. * */ @@ -9275,10 +9275,10 @@ int32_t lsm6dsox_init_set(lsm6dsox_ctx_t *ctx, lsm6dsox_init_t val) /** * @brief Configures the bus operating mode.[set] * - * @param ctx communication interface handler. Use NULL to ingnore + * @param ctx communication interface handler. Use NULL to ignore * this interface.(ptr) * @param aux_ctx auxiliary communication interface handler. Use NULL - * to ingnore this interface.(ptr) + * to ignore this interface.(ptr) * @param val configures the bus operating mode for both the * main and the auxiliary interface. * @@ -9361,10 +9361,10 @@ int32_t lsm6dsox_bus_mode_set(lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, /** * @brief Get the bus operating mode.[get] * - * @param ctx communication interface handler. Use NULL to ingnore + * @param ctx communication interface handler. Use NULL to ignore * this interface.(ptr) * @param aux_ctx auxiliary communication interface handler. Use NULL - * to ingnore this interface.(ptr) + * to ignore this interface.(ptr) * @param val retrieves the bus operating mode for both the main * and the auxiliary interface.(ptr) * @@ -9452,10 +9452,10 @@ int32_t lsm6dsox_bus_mode_get(lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, /** * @brief Get the status of the device.[get] * - * @param ctx communication interface handler. Use NULL to ingnore + * @param ctx communication interface handler. Use NULL to ignore * this interface.(ptr) * @param aux_ctx auxiliary communication interface handler. Use NULL - * to ingnore this interface.(ptr) + * to ignore this interface.(ptr) * @param val the status of the device.(ptr) * */ @@ -9982,10 +9982,10 @@ int32_t lsm6dsox_pin_int1_route_get(lsm6dsox_ctx_t *ctx, /** * @brief Route interrupt signals on int2 pin.[set] * - * @param ctx communication interface handler. Use NULL to ingnore + * @param ctx communication interface handler. Use NULL to ignore * this interface.(ptr) * @param aux_ctx auxiliary communication interface handler. Use NULL - * to ingnore this interface.(ptr) + * to ignore this interface.(ptr) * @param val the signals to route on int2 pin. * */ @@ -10190,10 +10190,10 @@ int32_t lsm6dsox_pin_int2_route_set(lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx /** * @brief Route interrupt signals on int2 pin.[get] * - * @param ctx communication interface handler. Use NULL to ingnore + * @param ctx communication interface handler. Use NULL to ignore * this interface.(ptr) * @param aux_ctx auxiliary communication interface handler. Use NULL - * to ingnore this interface.(ptr) + * to ignore this interface.(ptr) * @param val the signals that are routed on int2 pin.(ptr) * */ @@ -10457,10 +10457,10 @@ int32_t lsm6dsox_all_sources_get(lsm6dsox_ctx_t *ctx, /** * @brief Sensor conversion parameters selection.[set] * - * @param ctx communication interface handler. Use NULL to ingnore + * @param ctx communication interface handler. Use NULL to ignore * this interface.(ptr) * @param aux_ctx auxiliary communication interface handler. Use NULL - * to ingnore this interface.(ptr) + * to ignore this interface.(ptr) * @param val set the sensor conversion parameters by checking * the constraints of the device.(ptr) * @@ -10883,10 +10883,10 @@ int32_t lsm6dsox_mode_set(lsm6dsox_ctx_t *ctx, lsm6dsox_ctx_t *aux_ctx, /** * @brief Sensor conversion parameters selection.[get] * - * @param ctx communication interface handler. Use NULL to ingnore + * @param ctx communication interface handler. Use NULL to ignore * this interface.(ptr) * @param aux_ctx auxiliary communication interface handler. Use NULL - * to ingnore this interface.(ptr) + * to ignore this interface.(ptr) * @param val get the sensor conversion parameters.(ptr) * */