| 111 | */ |
| 112 | |
| 113 | static int myAnalogRead (struct wiringPiNodeStruct *node, int pin) |
| 114 | { |
| 115 | int vHi, vLo ; |
| 116 | |
| 117 | serialPutchar (node->fd, 'a') ; |
| 118 | serialPutchar (node->fd, pin - node->pinBase) ; |
| 119 | vHi = serialGetchar (node->fd) ; |
| 120 | vLo = serialGetchar (node->fd) ; |
| 121 | |
| 122 | return (vHi << 8) | vLo ; |
| 123 | } |
| 124 | |
| 125 | |
| 126 | /* |
nothing calls this directly
no test coverage detected