Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
rfm12b Class Reference
This Class handles a rfm12b transceiver see http://www.hoperf.com/rf_fsk/rfm12b.htm. More...
#include <rfm12b.h>
Public Member Functions | |
| rfm12b (PinName mosi, PinName miso, PinName sclk, PinName nsel, PinName rxdata) | |
| Create a rfm12b object. | |
| void | init_spi () |
| init the spi-interface | |
| void | RFM_init (void) |
| initialize the device | |
| uint16_t | rfm_spi16 (uint16_t outval) |
| write and read 16 bit | |
| void | attachISR (void(*fptr)(void)) |
| attach a function to be called when the data-pin changes from 0->1 and from 1->0 this function has to do all the decoding keep this function short, as no interrrupts can occour within | |
| template<typename T > | |
| void | attachISR (T *tptr, void(T::*mptr)(void)) |
| attach an object member function to be called when the data-pin changes from 0->1 and from 1->0 | |
Detailed Description
This Class handles a rfm12b transceiver see http://www.hoperf.com/rf_fsk/rfm12b.htm.
Definition at line 18 of file rfm12b.h.
Constructor & Destructor Documentation
| rfm12b | ( | PinName | mosi, |
| PinName | miso, | ||
| PinName | sclk, | ||
| PinName | nsel, | ||
| PinName | rxdata | ||
| ) |
Create a rfm12b object.
Class rfm12b for RFM12B transceiver module http://www.hoperf.com/rf_fsk/rfm12b.htm.
- Parameters:
-
mosi SPI-Interface. One of the 2 PSI-Interfaces of mbed. Pin p5 or p11 miso SPI-Interface. One of the 2 PSI-Interfaces of mbed. Pin p6 or p12 sclk SPI-Interface. One of the 2 PSI-Interfaces of mbed. Pin p7 or p13 nsel Chip-Select. A Digial Output of mbed rxdata Data-Pin for received data. A DigitalIn of mbed
rfm12b object
Definition at line 18 of file rfm12b.cpp.
Member Function Documentation
| void attachISR | ( | void(*)(void) | fptr ) |
| void attachISR | ( | T * | tptr, |
| void(T::*)(void) | mptr | ||
| ) |
| void init_spi | ( | ) |
| void RFM_init | ( | void | ) |
initialize the device
Definition at line 41 of file rfm12b.cpp.
| uint16_t rfm_spi16 | ( | uint16_t | outval ) |
Generated on Thu Jul 14 2022 01:29:01 by
1.7.2