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).

atmel-rf-driver/driverRFPhy.h

Committer:
Wolfgang Betz
Date:
2016-11-21
Revision:
32:e5272bafeeea

File content as of revision 32:e5272bafeeea:

/*
 * Copyright (c) 2014-2015 ARM Limited. All rights reserved.
 * SPDX-License-Identifier: Apache-2.0
 * Licensed under the Apache License, Version 2.0 (the License); you may
 * not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef DRIVERRFPHY_H_
#define DRIVERRFPHY_H_
#ifdef __cplusplus
extern "C" {
#endif

#include "nanostack/platform/arm_hal_phy.h"
	
/*Atmel RF Part Type*/
typedef enum {
	ATMEL_UNKNOW_DEV = 0,
	ATMEL_AT86RF212,
	ATMEL_AT86RF231,
	ATMEL_AT86RF233
}rf_trx_part_e;
	
extern int8_t rf_device_register(void);
extern rf_trx_part_e rf_radio_type_read(void);
extern void rf_read_mac_address(uint8_t *ptr);
extern int8_t rf_read_random(void);
	
#ifdef __cplusplus
}
#endif
#endif /* DRIVERRFPHY_H_ */