Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
ezfit:instrument_scratch_memory_map [2015/05/07 16:28] ajdavis Added Sonetik scratch map for OnSemi |
ezfit:instrument_scratch_memory_map [2018/01/24 16:36] (current) ajdavis [Audiogram: Methods for Storage and Retrieval] |
||
---|---|---|---|
Line 6: | Line 6: | ||
^ ^Bits (Little Endian)^^^^^^^^^^^^^^^^Notes^ | ^ ^Bits (Little Endian)^^^^^^^^^^^^^^^^Notes^ | ||
^ ^15^14^13^12^11^10^09^08^07^06^05^04^03^02^01^00| | | ^ ^15^14^13^12^11^10^09^08^07^06^05^04^03^02^01^00| | | ||
- | ^Word1|Autofit\\ (upper 8-bits, out of 16-bit)||||||||Audiogram\\ (top 2-bits, out of 50-bit)||Year Code used in Serial Number (6 bits)\\ Space specified by RTI||||||Clari-D only supports 8-bits| | + | ^Word1 |
- | ^Word2|In Situ\\ (1 bit)|PrescriptionType\\ (4 bits)||||UserVCPos\\ (3 bits)|||Instrument Model Code (8 bits)\\ Space specified by RTI|||||||| | | + | ^Word2 |
- | ^Word3|Autofit\\ (lower 8-bits, out of 16-bit)||||||||Serial Number - 1st part (upper 8-bits, out of 24-bit)\\ Space specified by RTI||||||||Clari-D only supports 8-bits| | + | ^Word3 |
- | ^Word4|Serial Number - 2nd part (lower 16-bits, out of 24-bit)\\ Space specified by RTI|||||||||||||||| | | + | ^Word4 |
- | ^Word5|Audiogram\\ (upper 16-bits, out of 50-bit)||||||||||||||||N/ | + | ^Word5 |
- | ^Word6|Audiogram\\ (mid 16-bits, out of 50-bit)||||||||||||||||N/ | + | ^Word6 |
- | ^Word7|Audiogram\\ (lower 16-bits, out of 50-bit)||||||||||||||||N/ | + | ^Word7 |
- | ^Word8|Company code\\ (7 bits) ||||||| Vent Size\\ (5-bits) |||||Tubing Type (OTE)\\ (upper 2-bits, out of 3-bit) ||Has Directional Mic\\ (1-bit)|Tubing Type (OTE)\\ (former BTE Earhook)\\ (lower 1-bit, out of 3-bit)|N/A in Intuition2 & Clari-D| | + | ^Word8 |
- | ^Word8\\ (Deprecated)|< | + | ^Word8 / MDA 7\\ (Sonetik only)| PGM file loaded\\ (16 bits) |||||||||||||||| Sonetik only| |
- | ^Word8\\ (Sonetik only)| | | | | | | | | | | | | PGM file loaded\\ (4 bits) |||| Sonetik only| | + | ^Word9 |
- | ^Word9|Acclimatization\\ (2-bits)||Dome Size\\ (4-bits)||||Tubing Length\\ (4-bits)||||Has Push Button/\\ Toggle Switch/ | + | ^Word9 |
- | ^Word9\\ (Sonetik only)| Work order number\\ (upper 16-bits, out of 32-bit)||||||||||||||||Sonetik only| | + | ^Word10 |
- | ^Word10| [[ezfit: | + | ^Word10 |
- | ^Word10\\ (Sonetik only)| Work order number\\ (lower 16-bits, out of 32-bit)||||||||||||||||Sonetik only| | + | |
- | ==OnSemi (former | + | ==OnSemi (formerly |
===Map of Scratch Memory (128-bit)=== | ===Map of Scratch Memory (128-bit)=== | ||
Line 37: | Line 36: | ||
^Byte 80 | | | | | | | | | | ^Byte 80 | | | | | | | | | | ||
^Byte 88 | Sonetik - Stored Stock Program < | ^Byte 88 | Sonetik - Stored Stock Program < | ||
- | ^Byte 96 |flag '' | + | ^Byte 96 |flag '' |
^Byte 104 |Audiogram < | ^Byte 104 |Audiogram < | ||
^Byte 112 |In Situ Audiogram (11 bytes: 1 byte for length, 10 bytes for data) < | ^Byte 112 |In Situ Audiogram (11 bytes: 1 byte for length, 10 bytes for data) < | ||
Line 367: | Line 366: | ||
</ | </ | ||
=== Audiogram: Methods for Storage and Retrieval === | === Audiogram: Methods for Storage and Retrieval === | ||
- | Set the audiogram data in the scratch memory: | + | Set the audiogram data in the scratch memory. 10 frequencies are stored in 50 bits, representing each value as a 5 bit number. The value stored is the hearing threshold divided by 5. This is rounded to the nearest 5, so 26 becomes 5 and 48 becomes 10. The minimum stored value is 0, the maximum stored value is 150. |
<code delphi> | <code delphi> | ||
// | // | ||
Line 562: | Line 561: | ||
| Music | autofit_Music | | Music | autofit_Music | ||
| Television | | Television | ||
- | | Theater | + | | Theatre |
| Intense Noise | autofit_IntenseNoise | | Intense Noise | autofit_IntenseNoise | ||
| AutoAdapt | | AutoAdapt | ||
Line 575: | Line 574: | ||
| Music | autofit_Music | | Music | autofit_Music | ||
| Home / Office / TV | autofit_HomeOfficeTV | | Home / Office / TV | autofit_HomeOfficeTV | ||
- | | Theater | + | | Theatre |
| Intense Noise | autofit_IntenseNoise | | Intense Noise | autofit_IntenseNoise | ||
| AutoAdapt | | AutoAdapt |