PYTICC
Python module to interface with Texas Instruments CC1xxx Sub-1Ghz RF transceivers over SPI.
Supported Models
- CC1101
Installation
pip install pyticc
Basic usage
from pyticc.cc1101 import CC1101
cc = CC1101()
cc.sanity_check()
cc.recv_data()
Command Strobes
cc.reset()
cc.power_down()
cc.sidle()
cc.enable_rx()
cc.enable_tx()
cc.wor_on()
cc.sx_off()
cc.calibrate()
cc.flush_rx_fifo()
cc.flush_tx_fifo()
Convenience config methods (get or set)
cc.base_frequency(433)
cc.modulation('OOK')
cc.packet_length('PKT_LEN_VARIABLE')
cc.rx_bandwidth(325000)
cc.sync_word('FAFA')
cc.manchester(1)
cc.whitening(1)
Read and write raw bytes to register
byte = cc.read_byte(0x10)
cc.write_byte('MDMCFG4', byte)
Easy querying and modification of config register attributes
Query by address, or class attribute name.
cc.register_value(0x10)
{
'CHANBW_E[1:0]': 1,
'CHANBW_M[1:0]': 3,
'DRATE_E[3:0]': 8
}
cc.register_write('MDMCFG4', 'CHANBW_M[1:0]', 0x02)
cc.register_write('MDMCFG4', 'CHANBW_M[1:0]', '101')
To Do
- Add more CCxxxx models.
- JSON config dump/load would be cool.
CONTACT
Jeff Leary sillymonkeysoftware@gmail.com
Metadata
Release files for pyticc 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyticc-0.0.5.tar.gz | 10.4 kB | Without provenance | Details for pyticc-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyticc-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for pyticc-0.0.5-py3-none-any.whl |
Total release size: 22.0 kB
Release files / pyticc-0.0.5.tar.gz
| Download URL | pyticc-0.0.5.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cfaecdcac4d515b404c56ca261e3d85a0671013ec01aea73ff2d02c369d61598
|
|
BLAKE2b-256 checksum How to use checksums |
f16e9e850f077f4130c5ae2031e01acab6410466d71fcea4058f05ea60321861
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
|
Release files / pyticc-0.0.5-py3-none-any.whl
| Download URL | pyticc-0.0.5-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98c6197caf312565e8900fa4086221088217234a3102a909001abf6a303218e3
|
|
BLAKE2b-256 checksum How to use checksums |
3108cc125e7e987adde1d9e517c6a9f4f0de332e126872da7e095da93fb0c38b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
|
Security for pyticc 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.