Baseband interface file. More...
#include "pal_types.h"
Go to the source code of this file.
Data Structures | |
struct | PalBbCfg_t |
BB configuration. More... | |
Macros | |
#define | BB_CLK_RATE_HZ 1000000 |
BB clock rate in hertz. More... | |
#define | BB_MATH_DIV_10E6(n) ((uint32_t)(((uint64_t)(n) * UINT64_C(4295)) >> 32)) |
Binary divide with 1,000,000 divisor (n[max]=0xFFFFFFFF). More... | |
#define | BB_US_TO_BB_TICKS(us) (us) |
Return microseconds (no conversion required). More... | |
#define | BB_TICKS_TO_US(n) (n) |
BB ticks to microseconds (no conversion required). More... | |
#define | BB_MAX_SCAN_PERIOD_MS 1000 |
Typical maximum duration to scan in a scan interval (BbRtCfg_t::maxScanPeriodMs). More... | |
#define | BB_RF_SETUP_DELAY_US 150 |
Typical RF setup delay (BbRtCfg_t::rfSetupDelayUs). More... | |
#define | BB_SCH_SETUP_DELAY_US 500 |
Typical operation setup delay in microseconds (BbRtCfg_t::schSetupDelayUs). More... | |
#define | BB_TIMER_1MHZ_MAX_VALUE_US 0xFFFFFFFF /* 2^32 - 1 = 0xFFFFFFFF. */ |
Maximum time tick for 32 bit timer(1MHz) in microseconds (BbRtCfg_t::schSetupDelayUs). More... | |
#define | BB_TIMER_8MHZ_MAX_VALUE_US 0x1FFFFFFF /* 2^29 - 1 = 0x1FFFFFFF. */ |
Maximum time tick for 32 bit timer(8MHz) in microseconds (BbRtCfg_t::schSetupDelayUs). More... | |
#define | BB_RTC_MAX_VALUE_US 511999999 /* 2^24 / 32768 * 10^6 - 1 = 512 * 10^6 - 1 = 511999999. */ |
Maximum time tick for 24 bit RTC counter(32768Hz) in microseconds. (BbRtCfg_t::BbTimerBoundaryUs) More... | |
Typedefs | |
typedef void(* | bbDrvIrqCback_t) (void) |
IRQ callback datatypes. More... | |
Enumerations |
Functions | |
void | PalBbInit (void) |
Initialize the baseband driver. More... | |
void | PalBbEnable (void) |
Enable the BB hardware. More... | |
void | PalBbDisable (void) |
Disable the BB hardware. More... | |
void | PalBbLoadCfg (PalBbCfg_t *pCfg) |
Load BB timing configuration. More... | |
uint32_t | PalBbGetCurrentTime (void) |
Get the current BB clock value in microseconds. More... | |
uint8_t | PalBbGetTimestamp (uint32_t *pTime) |
Get the current FRC time. More... | |
void | PalBbRegisterProtIrq (uint8_t protId, bbDrvIrqCback_t timerCback, bbDrvIrqCback_t radioCback) |
Called to register a protocol's Radio and Timer IRQ callback functions. More... | |
void | PalBbSetProtId (uint8_t protId) |
Set protocol ID. More... | |
Baseband interface file.
Copyright (c) 2016-2019 Arm Ltd. All Rights Reserved.
Copyright (c) 2019-2020 Packetcraft, Inc.
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.
Definition in file pal_bb.h.
#define BB_MATH_DIV_10E6 | ( | n | ) | ((uint32_t)(((uint64_t)(n) * UINT64_C(4295)) >> 32)) |
#define BB_MAX_SCAN_PERIOD_MS 1000 |
Typical maximum duration to scan in a scan interval (BbRtCfg_t::maxScanPeriodMs).
#define BB_RF_SETUP_DELAY_US 150 |
Typical RF setup delay (BbRtCfg_t::rfSetupDelayUs).
#define BB_RTC_MAX_VALUE_US 511999999 /* 2^24 / 32768 * 10^6 - 1 = 512 * 10^6 - 1 = 511999999. */ |
Maximum time tick for 24 bit RTC counter(32768Hz) in microseconds. (BbRtCfg_t::BbTimerBoundaryUs)
#define BB_SCH_SETUP_DELAY_US 500 |
Typical operation setup delay in microseconds (BbRtCfg_t::schSetupDelayUs).
#define BB_TICKS_TO_US | ( | n | ) | (n) |
#define BB_TIMER_1MHZ_MAX_VALUE_US 0xFFFFFFFF /* 2^32 - 1 = 0xFFFFFFFF. */ |
Maximum time tick for 32 bit timer(1MHz) in microseconds (BbRtCfg_t::schSetupDelayUs).
#define BB_TIMER_8MHZ_MAX_VALUE_US 0x1FFFFFFF /* 2^29 - 1 = 0x1FFFFFFF. */ |
Maximum time tick for 32 bit timer(8MHz) in microseconds (BbRtCfg_t::schSetupDelayUs).
#define BB_US_TO_BB_TICKS | ( | us | ) | (us) |
typedef void(* bbDrvIrqCback_t) (void) |
anonymous enum |
Status codes.
anonymous enum |
enum PalBbPhy_t |
enum PalBbProt_t |