How spaceteddy/cc1101 works
Component Details
Hardware Layer:
• CC1101 RF Module at the bottom
• Physical pins (SI, SO, CS, SCLK, GDO2, GDO0, VDD, GND)
Driver Layer (Middle):
• Create two parallel implementations:
Left side: Arduino Implementation
• cc1100_arduino.h/cpp
• EEPROM Configuration Storage
Right side: Raspberry Pi Implementation
• cc1100_raspi.h/cpp
• WiringPi Dependency
Application Layer (Top):
• Demo Applications
Left side: Arduino Examples
• Tx_demo
• Rx_demo
• Rx_demo_WOR
Right side: Raspberry Pi Examples
• TX_Demo
• RX_Demo
• RX_Demo_WOR
Connection and Data Flow
• Physical connections between CC1101 and platforms (SPI bus)
• Data flow between layers
• Configuration flow
• RF communication paths
Special Elements
Create dedicated sections for:
• RF Packet Structure (show the byte layout)
• [pkt_len][rx_addr][tx_addr][payload data]
• Modulation modes
• ISM frequency bands
• Address settings
Additional Details
• Voltage levels (3.3V operation)
• Pin mapping tables for both platforms
• Supported modulation modes
• Frequency bands
Implementation Notes
Callouts for:
• EEPROM configuration requirement for Arduino
• WiringPi dependency for Raspberry Pi
• Maximum payload size limitations
• Address broadcasting capabilities
• The dual-platform nature of the library
• Hardware interfacing requirements
• Clear separation between hardware, driver, and application layers
• Configuration flows and options
• RF packet structure and communication patterns
Remember to:
• Keep the hardware interface section detailed but clear
• Both Arduino and Raspberry Pi paths clearly separated
• Common RF module interface
• Version information and support notes