Go to the source code of this file.
Macros | |
| #define | LED_INDICATOR 0 |
| ///////////////////////////////////////////////////////////////////////// rfm12_io.h // // Version: 0.2 // Date: 07/01/2010 // Author: Michael Skutek (michael@skutek.de) // // Description: SPI Interface to RFM2 wireless module // // Platform: AVR ATmega (tested on ATmega16) // // Include Files: // avr/io.h: port accessing (part of avr-gcc) // util/delay.h: time delays (part of avr-gcc) // port_definitions.h: definition of output ports // rfm12_io.h: definitions for RFM12_io // // // This program 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 3 of the // License, or (at your option) any later version. // // This program 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. // // You should have received a copy of the GNU Lesser General Public // License along with this program. If not, see // http://www.gnu.org/licenses/. // More... | |
| #define | RFM12_TXBUFFER_LENGTH 18 |
| #define | RFM12_RXBUFFER_LENGTH 18 |
| #define | RFM12_POR_DELAY_MS 200 |
| #define | RFM12_RESET_WIDTH_MS 200 |
| #define | RFM12_COMMAND_TIMEOUT 1000 |
| #define | RFM12_REGISTER_DATA 0x1 |
| #define | RFM12_TX_DATA 0x2 |
| #define | RFM12_RX_DATA 0x3 |
| #define | RFM12_TRANSMISSION_BURST 1 |
| #define | RFM12_CONFIG_VALUE 0x80e7 |
| #define | RFM12_CONFIG_TX_OFF_VALUE 0x8067 |
| #define | RFM12_POWERMANAGEMENT_TX_VALUE 0x8239 |
| #define | RFM12_POWERMANAGEMENT_RX_VALUE 0x82c9 |
| #define | RFM12_POWERMANAGEMENT_SLEEP_VALUE 0x8201 |
| #define | RFM12_POWERSETTING_VALUE 0x94cd |
| #define | RFM12_STATUSREAD_VALUE 0x0000 |
| #define | RFM12_FREQUENCY_VALUE 0xa672 |
| #define | RFM12_DATARATE_VALUE 0xc611 |
| #define | RFM12_DATAFILTER_VALUE 0xc2ab |
| #define | RFM12_FIFOMODE_VALUE 0xca83 |
| #define | RFM12_NOFIFOMODE_VALUE 0xca81 |
| #define | RFM12_AFC_VALUE 0xc4f7 |
| #define | RFM12_TXCONFIG_VALUE 0x9822 |
| #define | RFM12_PLLSETTING_VALUE 0xcc77 |
| #define | RFM12_WAKEUPTIMER_VALUE 0xE000 |
| #define | RFM12_LOWDUTYCYCLE_VALUE 0xc800 |
| #define | RFM12_LOWBATDET_VALUE 0xc000 |
| #define | RFM12_FIFOREAD_VALUE 0xb000 |
| #define | RFM12_SYNCHRONPATTERN_VALUE 0xced4 |
| #define | RFM12_RW_HIGH_BYTE_SET_TIMEOUT -1 |
| #define | RFM12_RW_LOW_BYTE_SET_TIMEOUT -2 |
| #define | RFM12_CFG_HIGH_BYTE_SET_TIMEOUT -3 |
| #define | RFM12_CFG_LOW_BYTE_SET_TIMEOUT -4 |
| #define | RFM12_PM_HIGH_BYTE_SET_TIMEOUT -5 |
| #define | RFM12_PM_LOW_BYTE_SET_TIMEOUT -6 |
| #define | RFM12_RDY_NEXT_BYTE_SET_TIMEOUT -7 |
| #define | RFM12_TX_HIGH_BYTE_SET_TIMEOUT -8 |
| #define | RFM12_TX_LOW_BYTE_SET_TIMEOUT -9 |
| #define | RFM12_RX_HIGH_BYTE_SET_TIMEOUT -10 |
| #define | RFM12_RX_LOW_BYTE_SET_TIMEOUT -11 |
Functions | |
| int16_t | rfm12_data_io (volatile uint16_t *, volatile uint16_t *, uint8_t, uint8_t, uint8_t) |
| uint16_t | rfm12_init (uint8_t) |
| void | rfm12_pin_init (void) |
1.8.14