This README file is best viewed online.
- You can use the pre-built library files that are included with the driver
- Or, you can download the latest library version from Github releases.
If you are not using the included Windows installer, you can install the library by using the setup script.
python setup.py install
Lets get started with a quick programming example for fun.
This tutorial has already been set up for you at examples/tutorial.py
.
First, create a new Python file (named tutorial.py) with the following code.
import fscc
if __name__ == '__main__':
p = fscc.Port(0)
p.write(b'Hello world!')
print(p.read(100)[0])
Now attach the included loopback connector.
# python tutorial.py
b'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
- Writes
We follow Semantic Versioning when creating releases.
Copyright (C) 2014 Commtech, Inc.
Licensed under the GNU General Public License v3.