code to access the AT30TSE75x temperature and E-prom device
Dependents: AT30TSE752TST AT30TSE752TST2
Diff: AT30TSE75x.h
- Revision:
- 3:5944e2454e42
- Parent:
- 2:91836ad02096
- Child:
- 5:c783703a9e28
--- a/AT30TSE75x.h Wed Jan 18 17:52:08 2017 +0000 +++ b/AT30TSE75x.h Tue Jan 31 11:31:22 2017 +0000 @@ -64,6 +64,7 @@ int getInitStatus(void) { return initstatus;} int getTaddr(){ return Taddr;}; int getEaddr(){ return Eaddr;}; + uint16_t get_temperature_register(int &error); float get_temperature(int &error); // write the status of the configreg structure to the register ( NV or volatile ) r // @error , report error I2C error or 43 in case the register is locked permanent and writing to nonvolatile register