Skip to content

Conversation

Shreehari-AlifSemi
Copy link
Contributor

Update the temperature data processing to
handle different data sizes based on FIFO configuration. The temperature sensor data size and conversion
formula vary depending on the FIFO mode:

  1. FIFO disabled: Uses 20-bit data format
  2. FIFO enabled (standard resolution): 16-bit data
  3. FIFO enabled (high resolution): 20-bit data

The implementation now:

  • Uses the 'fifo_highres_enabled' flag to determine the correct data size
  • Applies the appropriate conversion formula based on the resolution mode
  • Handles all three possible FIFO configurations
  • Ensures accurate temperature readings in all modes

@teburd
Copy link
Contributor

teburd commented Oct 3, 2025

@bperseghetti @ubieda please take a look

afontaine-invn
afontaine-invn previously approved these changes Oct 3, 2025
ubieda
ubieda previously approved these changes Oct 8, 2025
Update the temperature data processing to
handle different data sizes based on FIFO configuration.
The temperature sensor data size and conversion
formula vary depending on the FIFO mode:
1. FIFO disabled: Uses 20-bit data format
2. FIFO enabled (standard resolution): 16-bit data
3. FIFO enabled (high resolution): 20-bit data

The implementation now:
- Uses the 'fifo_highres_enabled' flag
  to determine the correct data size
- Applies the appropriate conversion formula
  based on the resolution mode
- Handles all three possible FIFO configurations
- Ensures accurate temperature readings in all modes

Signed-off-by: Shreehari HK <[email protected]>
@Shreehari-AlifSemi Shreehari-AlifSemi force-pushed the ZRTSS-619-icm-42670-update-temperature-data-processing branch from 15d889e to aeae605 Compare October 8, 2025 15:22
@Shreehari-AlifSemi
Copy link
Contributor Author

Please review this as well: tdk-invn-oss/zephyr.hal_tdk#16

Copy link

sonarqubecloud bot commented Oct 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants