Revision 943
Simulator library compiles.
analog.h | ||
---|---|---|
154 | 154 |
unsigned int analog8(int which); |
155 | 155 |
|
156 | 156 |
/** |
157 |
* Returns the 8-bit analog conversion of which from |
|
158 |
* the lookup table. If the requested port is the BOM_PORT |
|
159 |
* you will get an automatic 0 since the BOM_PORT is not |
|
160 |
* read in the loop and not stored. If you need that port |
|
161 |
* you should use the functions in bom.c. There is an analog_get8 |
|
162 |
* function which for instant lookups but should be avoided unless |
|
163 |
* you know what you're doing. |
|
164 |
* |
|
165 |
* @param which the port that you want to read |
|
166 |
* |
|
167 |
* @bug may cause a seg fault if which is a larger value |
|
168 |
* than exists in an_val table. Not sure if we should fix |
|
169 |
* this or not since it would add overhead. |
|
170 |
* |
|
171 |
* @return 8-bit analog value for the which port requested |
|
172 |
* |
|
173 |
* @see analog10, analog_get8, analog_get10 |
|
174 |
**/ |
|
175 |
unsigned int analog8(int which); |
|
176 |
|
|
177 |
/** |
|
157 | 178 |
* @brief Returns an 10-bit analog value from the look up table. Use this instead of analog_get10. |
158 | 179 |
* |
159 | 180 |
* Returns the 10-bit analog conversion of which from |
Also available in: Unified diff