CCxxxx Driver
0.0.1
|
Note Doxygen generated HTML can be found here.
This driver aims to provide a generic API for Texas Instrument's CC110L/CC1101 line of RF transceivers. It tries to wrap up some of the quirks in dealing with these components, so they they don't have to be repeated for each MCU port.
As TI have made many of the registers common across the CC1100 and CC2500 range, this driver should be compatible with other parts. Please notes that it is possible CC110L/CC1101 specific features are used in this driver and the examples.
This driver has three core modules:
src/spi/ccx_spi.h
. Some example implementations of this can be found in src/spi/ports
.The file src/ccx.mk
tries to quickly bring in the relevant files to your build system. It should be sourced in your project Makefile and will provide the following variables:
CCX_CSRC
- C source filesCCX_INC
- include directoriesCCX_DEF
- List of defines for the C preprocessorAn example of using this is available at examples/msp_exp430g2_transceiver/Makefile
.
In order to use the CCX API you should:
src/ccx.mk
in your project MakefileCCX_CSRC
to your C source/CSRC
CCX_INC
to your includes/INC
CCX_DEF
to your compiler flags/CFLAGS
ccx_api.h
in your C filesTo bring in Quickstart you should follow the steps above to use the CCX module. Additionally, before sourcing src/ccx.mk
in your project Makefile you should:
CCX_QS_FREQ
to be either 315
, 433
, 868
, 915
, 2400
CCX_QS_CONNECTED_GDO
to be either 0
or 2
to set the receive interrupt as either GD0
or GD2
Ensure that you include ccx_quickstart.h
in your relevant C files.
The following variables can be set in your Makefile before sourcing src/ccx.mk
to provide some convenient debugging.
CCX_LOG_ERRORS
to 1
to enable a user defined logging function (ccxErrorLog) to be called when an error is encountered.CCX_TESTS
to 1
to compile in a small group of tests. These can be called with ccxRunTests.