本篇用來記錄透過cpp實現在userspace存取Linux上的Device file, 及相關Lib的使用
讀取Linux上的eeprom
#include <iostream>
#include <array>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/i2c.h>
#include <unistd.h>
Are you sure to leave this team?
Once you delete your team, all team notes will be deleted and cannot be recovered. Please ensure you've exported or transfered these notes.
Enter team name before deleting it:
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up