Loading...
Searching...
No Matches
cc110x_internal.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Otto-von-Guericke-Universität Magdeburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "cc110x_calibration.h"
20#include "cc110x_constants.h"
21#include "cc110x_netdev.h"
22#include "cc110x_rx_tx.h"
23#include "cc110x_settings.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
55static inline cc110x_state_t cc110x_state_from_status(uint8_t status)
56{
57 return (cc110x_state_t)((status >> 4) & 0x7);
58}
59
68static inline int cc110x_is_ready_from_status(uint8_t status)
69{
70 return (status & 0x80) ? 0: 1;
71}
72
73#ifdef __cplusplus
74}
75#endif
76
Calibration related functions of the CC110x transceiver driver.
Functions to communicate with the CC1100/CC1101 transceiver.
Constants for the CC1100/CC1101 driver.
static cc110x_state_t cc110x_state_from_status(uint8_t status)
Extract the device state from the status register value.
static int cc110x_is_ready_from_status(uint8_t status)
Figure out of the transceiver is ready or still powering up.
Functions related to the netdev interface of the CC110x driver.
Functions to related to RX/TX of the CC110x transceiver driver.
Default settings of the TI CC1100/CC1101 transceiver.
cc110x_state_t
The state of the CC1100/CC1101 transceiver.
Definition cc110x.h:257