Skip to main content

Python module to interface with Texas Instruments CCx Sub-1Ghz RF transceivers over SPI.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyticc-0.0.5.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

pyticc-0.0.5-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file pyticc-0.0.5.tar.gz.

File metadata

  • Download URL: pyticc-0.0.5.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pyticc-0.0.5.tar.gz
Algorithm Hash digest
SHA256 cfaecdcac4d515b404c56ca261e3d85a0671013ec01aea73ff2d02c369d61598
MD5 e2c2f354c39366a745c85e790d81d7ec
BLAKE2b-256 f16e9e850f077f4130c5ae2031e01acab6410466d71fcea4058f05ea60321861

See more details on using hashes here.

File details

Details for the file pyticc-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pyticc-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pyticc-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 98c6197caf312565e8900fa4086221088217234a3102a909001abf6a303218e3
MD5 b7f54302814df2264114de9cbe020d61
BLAKE2b-256 3108cc125e7e987adde1d9e517c6a9f4f0de332e126872da7e095da93fb0c38b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page