Prototype RF driver for STM Sub-1 GHz RF expansion board based on the SPSGRF-868 module for STM32 Nucleo.
Prototype RF Driver for STM Sub-1 GHz RF Expansion Boards based on the SPSGRF-868 and SPSGRF-915 Modules for STM32 Nucleo
Currently supported boards:
Note, in order to use expansion board X-NUCLEO-IDS01A4
in mbed you need to perform the following HW modifications on the board:
- Unmount resistor
R4
- Mount resistor
R7
Furthermore, on some Nucleo development boards (e.g. the NUCLEO_F429ZI), in order to be able to use Ethernet together with these Sub-1 GHz RF expansion boards, you need to compile this driver with macro SPIRIT1_SPI_MOSI=PB_5
defined, while the development board typically requires some HW modification as e.g. described here!
This driver can be used together with the 6LoWPAN stack (a.k.a. Nanostack).
Diff: stm-spirit1-rf-driver/SimpleSpirit1.h
- Revision:
- 82:a18c22d2b83a
- Parent:
- 74:7672516efa2a
--- a/stm-spirit1-rf-driver/SimpleSpirit1.h Fri Feb 02 09:57:17 2018 +0100 +++ b/stm-spirit1-rf-driver/SimpleSpirit1.h Fri Feb 02 14:13:24 2018 +0100 @@ -442,14 +442,7 @@ return *_singleton; } - /** Create singleton instance of 'SimpleSpirit1' - * - * @param mosi 'PinName' of mosi pin to use - * @param miso 'PinName' of miso pin to use - * @param sclk 'PinName' of clock pin to use - * @param irq 'PinName' of interrupt pin to use - * @param cs 'PinName' of chip-select pin pin to use - * @param sdn 'PinName' of pin to use for device shutdown + /** Get singleton instance of 'SimpleSpirit1' * * @returns reference to singleton instance */ @@ -476,6 +469,7 @@ /** Switch Radio On */ int on(void); + /** Switch Radio Off */ int off(void); @@ -509,9 +503,9 @@ */ int read(void *buf, unsigned int bufsize); - /** Perform a Clear-Channel Assessment (CCA) to find out if there is a packet in the air or not. + /** Perform a Clear-Channel Assessment (CCA) to find out whether the medium is idle or not. * - * @returns 1 if packet has been seen. + * @returns 1 if the medium is busy. */ int channel_clear(void);