Register-Level Programming
139
This example shows how to read the high power mode value from the EEPROM:
ULONG alwaysOn = 1;
UINT numberOfBytes = 1;
OLSTATUS olStatus = olDiagReadReg(m_hDev, EEPROM_ME
EEPROM_OFFSET_POWER_OVERRIDE_REG, &alwaysOn, numberOfBytes);
This example shows how to write to this EEPROM location to keep high power mode always
on:
// To keep the high power mode always on, use the following code:
UINT alwaysOn = 1;
UINT numberOfBytes = 1;
OLSTATUS olStatus = olDiagWriteReg(m_hDev, EEPROM_ME
EEPROM_OFFSET_POWER_OVERRIDE_REG, alwaysOn, numberOfBytes);
Note:
Current, only one bit of this control is used; therefore, there is no need to mask any
other bits in this control.
Summary of Contents for DT9837
Page 1: ...DT9837 Series UM 22417 AJ User s Manual Title Page ...
Page 4: ......
Page 12: ...About this Manual 12 ...
Page 26: ...Chapter 1 26 ...
Page 27: ...Part 1 Getting Started ...
Page 28: ......
Page 53: ...Verifying the Operation of a Module 53 ...
Page 60: ...Chapter 4 60 ...
Page 61: ...Part 2 Using Your Module ...
Page 62: ......
Page 90: ...Chapter 5 90 ...
Page 104: ...Chapter 6 104 ...
Page 110: ...Chapter 7 110 ...
Page 130: ...Appendix A 130 ...
Page 144: ...Appendix C 144 ...
Page 150: ...Index 150 ...