cc110x_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Otto-von-Guericke-Universität Magdeburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef CC110X_INTERNAL_H
20 #define CC110X_INTERNAL_H
21 
22 #include "cc110x_calibration.h"
23 #include "cc110x_communication.h"
24 #include "cc110x_constants.h"
25 #include "cc110x_netdev.h"
26 #include "cc110x_rx_tx.h"
27 #include "cc110x_settings.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
59 static inline cc110x_state_t cc110x_state_from_status(uint8_t status)
60 {
61  return (cc110x_state_t)((status >> 4) & 0x7);
62 }
63 
72 static inline int cc110x_is_ready_from_status(uint8_t status)
73 {
74  return (status & 0x80) ? 0: 1;
75 }
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* CC110X_INTERNAL_H */
82 
cc110x_is_ready_from_status
static int cc110x_is_ready_from_status(uint8_t status)
Figure out of the transceiver is ready or still powering up.
Definition: cc110x_internal.h:72
cc110x_netdev.h
Functions related to the netdev interface of the CC110x driver.
cc110x_communication.h
Functions to communicate with the CC1100/CC1101 transceiver.
cc110x_rx_tx.h
Functions to related to RX/TX of the CC110x transceiver driver.
cc110x_calibration.h
Calibration related functions of the CC110x transceiver driver.
cc110x_state_t
cc110x_state_t
The state of the CC1100/CC1101 transceiver.
Definition: cc110x.h:263
cc110x_settings.h
Default settings of the TI CC1100/CC1101 transceiver.
cc110x_state_from_status
static cc110x_state_t cc110x_state_from_status(uint8_t status)
Extract the device state from the status register value.
Definition: cc110x_internal.h:59
cc110x_constants.h
Constants for the CC1100/CC1101 driver.