Component: Injector (DS1307 RTC) (): Difference between revisions
No edit summary |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 105: | Line 105: | ||
===ChangeState=== | ===ChangeState=== | ||
{| 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" | '''ChangeState''' | ||
|- | |- | ||
| colspan="2" | Changes the state for I2C or SPI type comms where the data bytes along are not enough to go on. | | colspan="2" | Changes the state for I2C or SPI type comms where the data bytes along are not enough to go on. | ||
| Line 124: | Line 124: | ||
===GetConsoleHandle=== | ===GetConsoleHandle=== | ||
{| 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" | '''GetConsoleHandle''' | ||
|- | |- | ||
| colspan="2" | Gets the handle to the console allowing data displaying on the panel etc. | | colspan="2" | Gets the handle to the console allowing data displaying on the panel etc. | ||
| Line 138: | Line 138: | ||
===InitialiseInjector=== | ===InitialiseInjector=== | ||
{| 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" | '''InitialiseInjector''' | ||
|- | |- | ||
| colspan="2" | Sets up the injector ready to receive commands or send data | | colspan="2" | Sets up the injector ready to receive commands or send data | ||
| Line 157: | Line 157: | ||
===RxByte=== | ===RxByte=== | ||
{| 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" | '''RxByte''' | ||
|- | |- | ||
| colspan="2" | Attempt to receive a byte back from the injector 0 - 255 = Valid data 256 = RX timeout no data available | | colspan="2" | Attempt to receive a byte back from the injector 0 - 255 = Valid data 256 = RX timeout no data available | ||
| Line 171: | Line 171: | ||
===RxByteCount=== | ===RxByteCount=== | ||
{| 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" | '''RxByteCount''' | ||
|- | |- | ||
| colspan="2" | Returns the number of bytes currently sat in the receive buffer. | | colspan="2" | Returns the number of bytes currently sat in the receive buffer. | ||
| Line 185: | Line 185: | ||
===TxByte=== | ===TxByte=== | ||
{| 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" | '''TxByte''' | ||
|- | |- | ||
| colspan="2" | Puts a byte onto the comms channel. | | colspan="2" | Puts a byte onto the comms channel. | ||
| Line 205: | Line 205: | ||
==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''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | DS1307 Injector Settings | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.1 |
| Category |
Injector (DS1307 RTC) component
Comms data injector to allow simulation of a DS1307 Real Time Clock and RAM.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_InjectorDS1307.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_InjectorDS1307.fcfx
Detailed description
No detailed description exists yet for this component
Examples
This example uses the I2C master component combined with the DS1307 injector to simulate an I2C communications bus between the target Microcontroller and the virtual DS1307 device.
I2C DS1307 Example
The panel displays the current time from the DS1307 RAM which is populated to match the system time.
The I2C console shows the communications between the target microcontroller and simulated I2C device.
The DS1307 console shows the contents of RAM memory on the simulated I2C device.
Macro reference
ChangeState
| ChangeState | |
| Changes the state for I2C or SPI type comms where the data bytes along are not enough to go on. | |
| NewState | |
| Return | |
GetConsoleHandle
| GetConsoleHandle | |
| Gets the handle to the console allowing data displaying on the panel etc. | |
| Return | |
InitialiseInjector
| InitialiseInjector | |
| Sets up the injector ready to receive commands or send data | |
| InjectorName | |
| Name of the console that will be created | |
| Return | |
RxByte
| RxByte | |
| Attempt to receive a byte back from the injector 0 - 255 = Valid data 256 = RX timeout no data available | |
| Return | |
RxByteCount
| RxByteCount | |
| Returns the number of bytes currently sat in the receive buffer. | |
| Return | |
TxByte
| TxByte | |
| Puts a byte onto the comms channel. | |
| DataByte | |
| Return | |
Property reference
| Properties | |
| DS1307 Injector Settings | |
| Circular Buffer Size | |
| Termination Character | |
| Device Address | |
| Day Setting | |
| Configures how the day of the week is calculated. | |


