| 42 | */ |
| 43 | |
| 44 | static void myPinMode (struct wiringPiNodeStruct *node, int pin, int mode) |
| 45 | { |
| 46 | int bit, old ; |
| 47 | |
| 48 | bit = 1 << ((pin - node->pinBase) & 7) ; |
| 49 | |
| 50 | old = node->data2 ; |
| 51 | if (mode == OUTPUT) |
| 52 | old &= (~bit) ; // Write bit to 0 |
| 53 | else |
| 54 | old |= bit ; // Write bit to 1 |
| 55 | |
| 56 | wiringPiI2CWrite (node->fd, old) ; |
| 57 | node->data2 = old ; |
| 58 | } |
| 59 | |
| 60 | |
| 61 |
nothing calls this directly
no test coverage detected