398

If more power or larger memories are needed, the 32 Bit-MCUs based on ARM cores are a good choice. They are available in the market from many suppliers in different configurations.For his projects, the author has decided for the STM32 family of STMicro.

If more power or larger memories are needed, the 32 Bit-MCUs based on ARM cores are a good choice. They are available in the market from many suppliers in different configurations.
For his projects, the author has decided for the STM32 family of STMicro. Following the RFM12 Library for this family is introduced:
 
Contents:
=========

main.c: This is a test program for the Lib. It is organized a multiple finite state machine, in order to demonstrate the non-blocking mode. It uses an external Interrupt on GPIOA.8. The ISR for this has to be included in your app as well.

Perform a message transmission:
  • Init the RFM12 by calling InitRFM12 (only once)
  • Fill the the buffer Txbu according to the protocol
  • Start transmission by RFMPutStart
  • Now you can do something else or
  • Ask the status of transmission by RFMPutReady
  • If this function replies with 3 then put is done and OK
 
Perform a message receive:
  • Init the RFM12 by calling InitRFM12 (only once)
  • Start receive by RFMGetStart
  • Now you can do something else or
  • Ask the status of receive by RFMGetReady
  • If this function replies with 3 then get is done and OK
  • Take the message out of buffer Rxbu
 
RFMLib.h: Header file for the Lib.
 
RFMLib.c: This is the RFM12-Library Release 3.0 In your application, you only have to use:
  • InitRFM12
  • RFMPutStart
  • RFMPutReady
  • RFMgetStart
  • RFMgetReady
 
Further description of protocol and functions are included in the source files.
This project has been developed with CooCox CoIDE 1.7.5 (costfree) and the complete project is attached.
 
Have fun with your developments!