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.
Содержание DT9837
Страница 1: ...DT9837 Series UM 22417 AJ User s Manual Title Page ...
Страница 4: ......
Страница 12: ...About this Manual 12 ...
Страница 13: ...13 1 Overview Hardware Features 14 Supported Software 21 Supported Accessories 24 Getting Started Procedure 25 ...
Страница 26: ...Chapter 1 26 ...
Страница 27: ...Part 1 Getting Started ...
Страница 28: ......
Страница 49: ...49 4 Verifying the Operation of a Module Select the Device 51 Acquire Data from an Analog Output Channel 54 ...
Страница 53: ...Verifying the Operation of a Module 53 ...
Страница 60: ...Chapter 4 60 ...
Страница 61: ...Part 2 Using Your Module ...
Страница 62: ......
Страница 90: ...Chapter 5 90 ...
Страница 104: ...Chapter 6 104 ...
Страница 105: ...105 7 Troubleshooting General Checklist 106 Technical Support 108 If Your Module Needs Factory Service 109 ...
Страница 110: ...Chapter 7 110 ...
Страница 130: ...Appendix A 130 ...
Страница 144: ...Appendix C 144 ...
Страница 150: ...Index 150 ...