Component: One Wire (DS2482) (Comms: Interface)
From Flowcode Help
Jump to navigationJump to searchAuthor | MatrixTSL |
Version | 1.0 |
Category | Comms: Interface |
Contents
One Wire (DS2482) component
A One Wire master transciever controlled using I2C comms. Useful for microcontroller devices where One Wire communications timings are too tight to do reliably.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_temp/One_Wire_DS2482_I2C.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_temp/One_Wire_DS2482_I2C.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
BusReset
GetDeviceCount
GetDeviceCount | |
Returns the number of devices found by the last ScanBus operation. | |
- BYTE | Return |
GetIDByte
Initialise
Initialise | |
- VOID | Return |
MatchROM
MatchROM | |
Performs a reset followed by the MatchROM code and then the 8-bit ROM code. | |
- BYTE | FamilyCode |
- BYTE | SerialNumber |
- VOID | Return |
ReceiveByte
ReceiveByte | |
Receives a byte from the one wire bus a bit at a time | |
- BYTE | Return |
ScanBus
ScanBus | |
Scans the one wire bus to detect all connected devices. Returns the number of one wire devices found. | |
- BYTE | Return |
SkipROM
SkipROM | |
Performs a bus reset and the sends the SkipROM command byte | |
- VOID | Return |
TransmitByte
TransmitByte | |
Transmit a byte to the one wire bus a bit at a time | |
- BYTE | Command |
- VOID | Return |