| 139 | } |
| 140 | |
| 141 | void xs_onewire_write(xsMachine *the) |
| 142 | { |
| 143 | modOneWire onewire = xsmcGetHostData(xsThis); |
| 144 | uint8_t value = xsmcToInteger(xsArg(0)); |
| 145 | if ((value < 0) || (value > 255)) |
| 146 | xsRangeError("bad value"); |
| 147 | owb_write_byte(onewire->owb, value); |
| 148 | } |
| 149 | |
| 150 | void xs_onewire_select(xsMachine *the) |
| 151 | { |
nothing calls this directly
no test coverage detected