Day33 - Minimal IIO Driver¶
Objective¶
- Implement a minimal IIO driver
- Verify sysfs interface generation
- Understand read path mapping
Step 1 - Build Driver¶
Step 2 - Load IIO Core (if needed)¶
Step 3 - Insert Module¶
Step 4 - Verify Probe¶
Expected:
Step 5 - Check IIO Device¶
Expected:
Step 6 - Explore sysfs¶
Step 7 - Read Values¶
Expected:
Step 8 - Modify Raw Value¶
Edit:
Rebuild and reload:
Verify:
Step 9 - Remove SCALE Attribute (Optional)¶
Modify:
Reload driver and verify:
Expected:
Result¶
Successfully verified:
- sysfs auto-generation
- channel mapping
- read_raw() data path