Loading...
Searching...
No Matches
cc2538_rf_internal.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 MUTEX NZ Ltd.
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for more
6 * details.
7 *
8 */
9
10#pragma once
11
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#define CC2538_RX_FIFO_ADDR 0x40088000
27#define CC2538_TX_FIFO_ADDR 0x40088200
28
39uint_fast8_t rfcore_read_byte(void);
40
52uint_fast8_t rfcore_peek_rx_fifo(int idx);
53
60void rfcore_read_fifo(void *buf, uint_fast8_t len);
61
67void rfcore_strobe(uint_fast8_t instr);
68
74void rfcore_write_byte(uint_fast8_t byte);
75
86void rfcore_poke_tx_fifo(int idx, uint_fast8_t byte);
87
94void rfcore_write_fifo(const void *buf, uint_fast8_t len);
95
96bool RFCORE_ASSERT_failure(const char *expr, const char *func, int line);
97
98#ifdef __cplusplus
99}
100#endif
101
void rfcore_read_fifo(void *buf, uint_fast8_t len)
Read the remaining unread data from the RX FIFO.
void rfcore_write_byte(uint_fast8_t byte)
Write a single byte to the next index of the TX FIFO.
uint_fast8_t rfcore_read_byte(void)
Read a single byte from the RX FIFO.
void rfcore_write_fifo(const void *buf, uint_fast8_t len)
Write a string of bytes to the TX FIFO.
uint_fast8_t rfcore_peek_rx_fifo(int idx)
Peek a single byte from the RX FIFO.
void rfcore_strobe(uint_fast8_t instr)
Issue a command strobe from the CPU to the radio.
void rfcore_poke_tx_fifo(int idx, uint_fast8_t byte)
Poke a single byte in the TX FIFO.