LibDriver NRF905
Loading...
Searching...
No Matches
driver_nrf905_basic.h File Reference

driver nrf905 basic header file More...

Include dependency graph for driver_nrf905_basic.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NRF905_BASIC_DEFAULT_PLL_MODE   NRF905_PLL_MODE_433_MHZ
 nrf905 basic example default definition
#define NRF905_BASIC_DEFAULT_OUTPUT_POWER   NRF905_OUTPUT_POWER_10_DBM
#define NRF905_BASIC_DEFAULT_RX_MODE   NRF905_RX_MODE_NORMAL
#define NRF905_BASIC_DEFAULT_AUTO_RETRANSMIT   NRF905_BOOL_FALSE
#define NRF905_BASIC_DEFAULT_RX_ADDRESS_WIDTH   NRF905_ADDRESS_WIDTH_4_BYTE
#define NRF905_BASIC_DEFAULT_TX_ADDRESS_WIDTH   NRF905_ADDRESS_WIDTH_4_BYTE
#define NRF905_BASIC_DEFAULT_RX_PAYLOAD_WIDTH   32
#define NRF905_BASIC_DEFAULT_TX_PAYLOAD_WIDTH   32
#define NRF905_BASIC_DEFAULT_RX_ADDR   {0xE7, 0xE7, 0xE7, 0xE7}
#define NRF905_BASIC_DEFAULT_OUTPUT_CLOCK_FREQUENCY   NRF905_OUTPUT_CLOCK_FREQUENCY_500KHZ
#define NRF905_BASIC_DEFAULT_OUTPUT_CLOCK   NRF905_BOOL_FALSE
#define NRF905_BASIC_DEFAULT_CRYSTAL_OSCILLATOR_FREQUENCY   NRF905_CRYSTAL_OSCILLATOR_FREQUENCY_16MHZ
#define NRF905_BASIC_DEFAULT_CRC   NRF905_BOOL_TRUE
#define NRF905_BASIC_DEFAULT_CRC_MODE   NRF905_CRC_MODE_8
#define NRF905_BASIC_DEFAULT_FREQUENCY   433.2f

Functions

uint8_t nrf905_interrupt_irq_handler (void)
 nrf905 irq
uint8_t nrf905_basic_init (nrf905_mode_t mode, void(*callback)(uint8_t type, uint8_t *buf, uint8_t len))
 basic example init
uint8_t nrf905_basic_deinit (void)
 basic example deinit
uint8_t nrf905_basic_send (uint8_t *addr, uint8_t *buf, uint8_t len)
 basic example send

Detailed Description

driver nrf905 basic header file

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version
1.0.0
Author
Shifeng Li
Date
2022-03-31

history

Date Version Author Description
2022/03/31 1.0 Shifeng Li first upload

Definition in file driver_nrf905_basic.h.