An easy to use Python API for programming and accessing Renesas's GreenPak SPLD devices.
Project description
GreenPak Driver
A Python package to access and program Renesas GreenPak SPLD's.
This Python package provides a simple to use API to read/write/program Renseas GreenPak PLDs over a USB to I2C link.
As of December 2023, the package supports the following USB to I2C interfaces and new ones can be easily added based on the examples in drivers.py:
- I2C Driver (two variants, mini and full.)
- I2C Adapter (four variants, including a bare Raspberry Pico.)
Sample usage using an I2C Adapter:
import greenpak as gp
print("Connecting.")
i2c_driver = gp.drivers.GreenPakI2cAdapter(port = "COM17")
gp_driver = gp.GreenpakDriver(i2c_driver, device="SLG46826", control_code=0b0001)
print("Loading configuration.")
data = gp.read_bits_file("test_data/slg46826_blinky_fast.txt")
gp.hex_dump(data)
print("Programming the NVM.")
gp_driver.program_nvm_pages(0, data)
print("Resetting the device.")
gp_driver.reset_device()
For full documentation see https://greenpak.readthedocs.io/en/latest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
greenpak-0.0.23.tar.gz
(11.9 kB
view hashes)
Built Distribution
greenpak-0.0.23-py3-none-any.whl
(13.6 kB
view hashes)
Close
Hashes for greenpak-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f33e2ea4bf4eead1574f40438ff5c384bf53fda46213f57cf6321c7e0974ee90 |
|
MD5 | c81d3816b56d1a4c29a88393798a8d48 |
|
BLAKE2b-256 | 9b58224c83a10e21c4a29156adbc0d51c5b0f4a23127faf05b2b48592e9e57a5 |