This README file is best viewed online.
- The easiest way is to grab the library from NuGet
- Or, you can download the latest library version from Github releases.
Lets get started with a quick programming example for fun.
This tutorial has already been set up for you at examples/tutorial.cs
.
First, drop netfscc.dll
and cfscc.dll
into a test directory. Now that those files are copied over, create a new C# file (named tutorial.cs) with the following code.
using Fscc;
using System;
public class Tutorial
{
public static int Main(string[] args)
{
Fscc.Port p = new Fscc.Port(0);
// Send "Hello world!" text
p.Write("Hello world!");
// Read the data back in (with our loopback connector)
Console.WriteLine(p.Read(100));
return 0;
}
}
For this example I will use the Visual Studio command line compiler, but you can use your compiler of choice.
# csc /reference:netfscc.dll /platform:x86 tutorial.cs
Now attach the included loopback connector.
# tutorial.exe
Hello world!
You have now transmitted and received an HDLC frame!
There are likely other configuration options you will need to set up for your own program. All of these options are described on their respective documentation page.
- Connect
- Append Status
- Append Timestamp
- Clock Frequency
- Ignore Timeout
- Memory Cap
- Purge
- Read
- Registers
- RX Multiple
- Track Interrupts
- TX Modifiers
- Write
- .NET compiler (Visual Studio tested)
- cfscc (Included)
- OS: Windows XP+ & Linux
- .NET: 2.0+
We follow Semantic Versioning when creating releases.
Copyright (C) 2020 Commtech, Inc.
Licensed under the MIT license