Component: API OneWire Dummy (API Slave Devices): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 70: | Line 70: | ||
===OneWireBusReset=== | ===OneWireBusReset=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneWireBusReset''' | ||
|- | |- | ||
| colspan="2" | Issue a 'ping' on the bus. If there is at least one sensor on the bus then it will generate a presence pulse. Returns 0 if a presense pulse was detected Returns 1 no device was detected | | colspan="2" | Issue a 'ping' on the bus. If there is at least one sensor on the bus then it will generate a presence pulse. Returns 0 if a presense pulse was detected Returns 1 no device was detected | ||
| Line 89: | Line 89: | ||
===OneWireGetDeviceCount=== | ===OneWireGetDeviceCount=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneWireGetDeviceCount''' | ||
|- | |- | ||
| colspan="2" | Returns the number of devices found by the last ScanBus operation. | | colspan="2" | Returns the number of devices found by the last ScanBus operation. | ||
| Line 108: | Line 108: | ||
===OneWireGetIDByte=== | ===OneWireGetIDByte=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneWireGetIDByte''' | ||
|- | |- | ||
| colspan="2" | Returns a single byte of the 64-Bit lasered ROM code, 255 on error | | colspan="2" | Returns a single byte of the 64-Bit lasered ROM code, 255 on error | ||
| Line 137: | Line 137: | ||
===OneWireInitialise=== | ===OneWireInitialise=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneWireInitialise''' | ||
|- | |- | ||
| colspan="2" | Initialise the OneWire module ready for communications | | colspan="2" | Initialise the OneWire module ready for communications | ||
| Line 156: | Line 156: | ||
===OneWireMatchROM=== | ===OneWireMatchROM=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneWireMatchROM''' | ||
|- | |- | ||
| colspan="2" | Performs a reset followed by the MatchROM code and then the 8-bit ROM code. | | colspan="2" | Performs a reset followed by the MatchROM code and then the 8-bit ROM code. | ||
| Line 185: | Line 185: | ||
===OneWireReceiveByte=== | ===OneWireReceiveByte=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneWireReceiveByte''' | ||
|- | |- | ||
| colspan="2" | Receives a byte from the one wire bus a bit at a time | | colspan="2" | Receives a byte from the one wire bus a bit at a time | ||
| Line 204: | Line 204: | ||
===OneWireScanBus=== | ===OneWireScanBus=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneWireScanBus''' | ||
|- | |- | ||
| colspan="2" | Scans the one wire bus to detect all connected devices. Returns the number of one wire devices found. | | colspan="2" | Scans the one wire bus to detect all connected devices. Returns the number of one wire devices found. | ||
| Line 223: | Line 223: | ||
===OneWireSkipROM=== | ===OneWireSkipROM=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneWireSkipROM''' | ||
|- | |- | ||
| colspan="2" | Performs a bus reset and the sends the SkipROM command byte | | colspan="2" | Performs a bus reset and the sends the SkipROM command byte | ||
| Line 242: | Line 242: | ||
===OneWireTransmitByte=== | ===OneWireTransmitByte=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''OneWireTransmitByte''' | ||
|- | |- | ||
| colspan="2" | Transmit a byte to the one wire bus a bit at a time | | colspan="2" | Transmit a byte to the one wire bus a bit at a time | ||
| Line 267: | Line 267: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|} | |} | ||
Latest revision as of 14:23, 13 July 2026
| Author | MatrixTSL |
| Version | 1.0 |
| Category | API Slave Devices |
API OneWire Dummy component
Component Source Code
Please click here to download the component source project: FC_Comp_Source_API_OneWire_Dummy.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_API_OneWire_Dummy.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
OneWireBusReset
OneWireGetDeviceCount
| OneWireGetDeviceCount | |
| Returns the number of devices found by the last ScanBus operation. | |
| Channel | |
| Channel Index: Range 0 - I2C Bus Count - 1 | |
| Return | |
OneWireGetIDByte
OneWireInitialise
| OneWireInitialise | |
| Initialise the OneWire module ready for communications | |
| Channel | |
| Channel Index: Range 0 - I2C Bus Count - 1 | |
| Return | |
OneWireMatchROM
OneWireReceiveByte
| OneWireReceiveByte | |
| Receives a byte from the one wire bus a bit at a time | |
| Channel | |
| Channel Index: Range 0 - I2C Bus Count - 1 | |
| Return | |
OneWireScanBus
| OneWireScanBus | |
| Scans the one wire bus to detect all connected devices. Returns the number of one wire devices found. | |
| Channel | |
| Channel Index: Range 0 - I2C Bus Count - 1 | |
| Return | |
OneWireSkipROM
| OneWireSkipROM | |
| Performs a bus reset and the sends the SkipROM command byte | |
| Channel | |
| Channel Index: Range 0 - I2C Bus Count - 1 | |
| Return | |
OneWireTransmitByte
| OneWireTransmitByte | |
| Transmit a byte to the one wire bus a bit at a time | |
| Channel | |
| Channel Index: Range 0 - I2C Bus Count - 1 | |
| Data | |
| Return | |
Property reference
| Properties |