Contiki-NG
Loading...
Searching...
No Matches

Implementation of the CC13xx/CC26xx RF core driver. More...

#include "contiki.h"
#include "dev/watchdog.h"
#include "sys/process.h"
#include "sys/energest.h"
#include "sys/cc.h"
#include "net/netstack.h"
#include "net/packetbuf.h"
#include "rf-core/rf-core.h"
#include "rf-core/rf-switch.h"
#include "ti-lib.h"
#include "hw_rfc_dbell.h"
#include "hw_rfc_pwr.h"
#include "driverlib/rf_mailbox.h"
#include "driverlib/rf_common_cmd.h"
#include "driverlib/rf_data_entry.h"
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Functions

uint8_t rf_core_is_accessible (void)
 Check whether the RF core is accessible.
 
uint_fast8_t rf_core_send_cmd (uint32_t cmd, uint32_t *status)
 Sends a command to the RF core.
 
uint_fast8_t rf_core_wait_cmd_done (void *cmd)
 Block and wait for a Radio op to complete.
 
uint32_t rf_core_cmd_status (void)
 Get the status of the last issued radio command.
 
int rf_core_power_up (void)
 Turn on power to the RFC and boot it.
 
uint8_t rf_core_start_rat (void)
 Start the CM0 RAT.
 
uint8_t rf_core_stop_rat (void)
 Stop the CM0 RAT synchronously.
 
void rf_core_power_down (void)
 Disable RFCORE clock domain in the MCU VD and turn off the RFCORE PD.
 
uint8_t rf_core_set_modesel (void)
 Initialise RF APIs in the RF core.
 
uint8_t rf_core_boot (void)
 Boot the RF Core.
 
uint8_t rf_core_restart_rat (void)
 Restart the CM0 RAT.
 
void rf_core_setup_interrupts (void)
 Setup RF core interrupts.
 
void rf_core_cmd_done_en (bool fg)
 Enable interrupt on command done.
 
void rf_core_cmd_done_dis (void)
 Disable the LAST_CMD_DONE and LAST_FG_CMD_DONE interrupts.
 
rfc_radioOp_t * rf_core_get_last_radio_op (void)
 Returns a pointer to the most recent proto-dependent Radio Op.
 
void rf_core_init_radio_op (rfc_radioOp_t *buf, uint16_t len, uint16_t command)
 Prepare a buffer to host a Radio Op.
 
void rf_core_primary_mode_register (const rf_core_primary_mode_t *mode)
 Register a primary mode for radio operation.
 
void rf_core_primary_mode_abort (void)
 Abort the currently running primary radio op.
 
uint8_t rf_core_primary_mode_restore (void)
 Abort the currently running primary radio op.
 
uint8_t rf_core_rat_init (void)
 Initialize the RAT to RTC conversion machinery.
 
uint8_t rf_core_check_rat_overflow (void)
 Check if RAT overflow has occured and increment the overflow counter if so.
 
uint32_t rf_core_convert_rat_to_rtimer (uint32_t rat_timestamp)
 Convert from RAT timestamp to rtimer ticks.
 

Detailed Description

Implementation of the CC13xx/CC26xx RF core driver.

Definition in file rf-core.c.