COSA
An Object-Oriented Platform for Arduino Programming
RFM69.cpp File Reference
#include "RFM69.hh"
#include "Cosa/Power.hh"
#include "Cosa/RTT.hh"
Include dependency graph for RFM69.cpp:

Go to the source code of this file.

Macros

#define REG_VALUE8(reg, value)   (reg), (uint8_t) (value)
 
#define REG_VALUE16(reg, value)
 
#define REG_VALUE24(reg, value)
 
#define FXOSC   32000000L
 
#define FSTEP   (FXOSC >> 19)
 
#define FRF_315_MHZ   0x4EC000L
 
#define FRF_434_MHZ   0x6C8000L
 
#define FRF_868_MHZ   0xD90000L
 
#define FRF_915_MHZ   0xE4C000L
 
#define FRF_SETTING   FRF_868_MHZ
 
#define BITRATE_1200_BPS   0x682B
 
#define BITRATE_2400_BPS   0x3415
 
#define BITRATE_4800_BPS   0x1A0B
 
#define BITRATE_9600_BPS   0x0D05
 
#define BITRATE_19200_BPS   0x0683
 
#define BITRATE_38400_BPS   0x0341
 
#define BITRATE_57600_BPS   0x022C
 
#define BITRATE_76800_BPS   0x01A1
 
#define BITRATE_115200_BPS   0x0116
 
#define BITRATE_153600_BPS   0x00D0
 
#define BITRATE_SETTING   BITRATE_4800_BPS
 
#define FDEV_SETTING   0x0052
 

Variables

const uint8_t RFM69::config[] __PROGMEM
 

Detailed Description

Version
1.0

License

Copyright (C) 2014-2015, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

This file is part of the Arduino Che Cosa project.

Definition in file RFM69.cpp.

Macro Definition Documentation

#define BITRATE_115200_BPS   0x0116

Definition at line 58 of file RFM69.cpp.

#define BITRATE_1200_BPS   0x682B

Definition at line 50 of file RFM69.cpp.

#define BITRATE_153600_BPS   0x00D0

Definition at line 59 of file RFM69.cpp.

#define BITRATE_19200_BPS   0x0683

Definition at line 54 of file RFM69.cpp.

#define BITRATE_2400_BPS   0x3415

Definition at line 51 of file RFM69.cpp.

#define BITRATE_38400_BPS   0x0341

Definition at line 55 of file RFM69.cpp.

#define BITRATE_4800_BPS   0x1A0B

Definition at line 52 of file RFM69.cpp.

#define BITRATE_57600_BPS   0x022C

Definition at line 56 of file RFM69.cpp.

#define BITRATE_76800_BPS   0x01A1

Definition at line 57 of file RFM69.cpp.

#define BITRATE_9600_BPS   0x0D05

Definition at line 53 of file RFM69.cpp.

#define BITRATE_SETTING   BITRATE_4800_BPS

Definition at line 60 of file RFM69.cpp.

#define FDEV_SETTING   0x0052

Definition at line 63 of file RFM69.cpp.

#define FRF_315_MHZ   0x4EC000L

Definition at line 43 of file RFM69.cpp.

#define FRF_434_MHZ   0x6C8000L

Definition at line 44 of file RFM69.cpp.

#define FRF_868_MHZ   0xD90000L

Definition at line 45 of file RFM69.cpp.

#define FRF_915_MHZ   0xE4C000L

Definition at line 46 of file RFM69.cpp.

#define FRF_SETTING   FRF_868_MHZ

Definition at line 47 of file RFM69.cpp.

#define FSTEP   (FXOSC >> 19)

Definition at line 40 of file RFM69.cpp.

#define FXOSC   32000000L

Definition at line 39 of file RFM69.cpp.

#define REG_VALUE16 (   reg,
  value 
)
Value:
REG_VALUE8(reg,value >> 8), \
REG_VALUE8(reg+1,value)
#define REG_VALUE8(reg, value)
Definition: RFM69.cpp:29

Definition at line 30 of file RFM69.cpp.

#define REG_VALUE24 (   reg,
  value 
)
Value:
REG_VALUE8(reg,value >> 16), \
REG_VALUE8(reg+1,value >> 8), \
REG_VALUE8(reg+2,value)
#define REG_VALUE8(reg, value)
Definition: RFM69.cpp:29

Definition at line 33 of file RFM69.cpp.

#define REG_VALUE8 (   reg,
  value 
)    (reg), (uint8_t) (value)

Definition at line 29 of file RFM69.cpp.

Variable Documentation

const uint8_t RFM69::config [] __PROGMEM

Default configuration: Radio: 868 MHz, 4.8 kbps, GFSK(0). Whitening, 13 dBm. Packet: Variable packet length with CRC, address check and broadcast(0x00) Frame: sync(2), length(1), dest(1), src(1), port(1), payload(max 63), crc(2) Digital Output Pins: DIO0, Asserts: RX:CRC_OK, TX:PACKET_SENT

Definition at line 72 of file RFM69.cpp.