Loading...
Searching...
No Matches
cc26x0_cc13x0_aux.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 Leon George
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
17#ifndef CC26X0_CC13X0_AUX_H
18#define CC26X0_CC13X0_AUX_H
19
20#include <stdbool.h>
21
22#include "cc26xx_cc13xx.h"
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
40
45#define AUX_AIODIO0_BASE 0x400C1000
46#define AUX_AIODIO1_BASE 0x400C2000
49#define AUX_AIODIO0 ((aux_aiodio_regs_t *) (AUX_AIODIO0_BASE))
50#define AUX_AIODIO1 ((aux_aiodio_regs_t *) (AUX_AIODIO1_BASE))
67
72#define AUX_TDC_BASE 0x400C4000
75#define AUX_TDC ((aux_tdc_regs_t *) (AUX_TDC_BASE))
99
104#define AUX_EVCTL_BASE 0x400C5000
107#define AUX_EVCTL ((aux_evctl_regs_t *) (AUX_EVCTL_BASE))
134
139#define MODCLKEN0_SMPH_EN 0x00000001 /* enable clock for AUX_SMPH */
140#define MODCLKEN0_AIODIO0_EN 0x00000002 /* enable clock for AUX_AIODIO0 */
141#define MODCLKEN0_AIODIO1_EN 0x00000004 /* enable clock for AUX_AIODIO1 */
142#define MODCLKEN0_TIMER_EN 0x00000008 /* enable clock for AUX_TIMER */
143#define MODCLKEN0_ANAIF_EN 0x00000010 /* enable clock for AUX_ANAIF */
144#define MODCLKEN0_TDC_EN 0x00000020 /* enable clock for AUX_TDC */
145#define MODCLKEN0_AUX_DDI0_OSC_EN 0x00000040 /* enable clock for AUX_DDI0_OSC */
146#define MODCLKEN0_AUX_ADI4_EN 0x00000080 /* enable clock for AUX_ADI4 */
153#define AUX_WUC_BASE 0x400C6000
156#define AUX_WUC ((aux_wuc_regs_t *) (AUX_WUC_BASE))
169
174#define AUX_TIMER_BASE 0x400C7000
177#define AUX_TIMER ((aux_timer_regs_t *) (AUX_TIMER_BASE))
193
198#define AUX_SMPH_BASE 0x400C8000
201#define AUX_SMPH ((aux_smph_regs_t *) (AUX_SMPH_BASE))
214
219#define AUX_ANAIF_BASE 0x400C9000
222#define AUX_ANAIF ((aux_anaif_regs_t *) (AUX_ANAIF_BASE))
240
245#define ADI_4_AUX_BASE 0x400CB000
248#define ADI_4_AUX ((adi_4_aux_regs_t *) (ADI_4_AUX_BASE))
250#define ADDI_SEM AUX_SMPH->SMPH0
252#ifdef __cplusplus
253} /* end extern "C" */
254#endif
255
256#endif /* CC26X0_CC13X0_AUX_H */
CC26xx, CC13xx definitions.
volatile uint32_t reg32_t
Unsigned 32-bit register type.
volatile uint8_t reg8_t
Unsigned 8-bit register type.
ADI_4_AUX registers.
reg8_t MUX1
multiplexer 1
reg8_t MUX4
multiplexer 4
reg8_t MUX0
multiplexer 0
reg8_t MUX3
multiplexer 3
reg8_t MUX2
multiplexer 2
reg8_t ADC0
ADC control 0.
reg8_t COMP
comparator
reg8_t ADCREF1
ADC reference 1.
reg8_t ISRC
current source
reg8_t ADCREF0
ADC reference 0.
reg8_t ADC1
ADC control 1.
AUX_AIODIO registers.
reg32_t GPIODOUTSET
gpio data out set
reg32_t GPIODOUTTGL
gpio data out toggle
reg32_t GPIODIE
gpio data input enable
reg32_t GPIODOUT
gpio data out
reg32_t GPIODIN
gpio data in
reg32_t IOMODE
input output mode
reg32_t GPIODOUTCLR
gpio data out clear
AUX_ANAIF registers.
reg32_t ADCTRIG
ADC trigger.
reg32_t ADCCTL
ADC control.
reg32_t ADCFIFOSTAT
ADC fifo status.
reg32_t ADCFIFO
ADC fifo.
reg32_t ISRCCTL
current source control
AUX_EVCTL registers.
reg32_t EVTOMCUFLAGS
event to MCU domain flags
reg32_t VECCFG0
vector config 0
reg32_t VECCFG1
vector config 1
reg32_t SCEWEVSEL
sensor controller engine wait event selection
reg32_t EVTOAONFLAGSCLR
events to AON domain clear
reg32_t VECFLAGSCLR
vector flags clear
reg32_t SWEVSET
software event set
reg32_t EVSTAT1
event status 1
reg32_t DMACTL
direct memory access control
reg32_t COMBEVTOMCUMASK
combined event to MCU domain mask
reg32_t EVTOMCUFLAGSCLR
events to MCU domain flags clear
reg32_t EVTOMCUPOL
event to MCU domain polarity
reg32_t EVTOAONPOL
events to AON domain polarity
reg32_t VECFLAGS
vector flags
reg32_t EVTOAONFLAGS
events to AON domain flags
reg32_t EVSTAT0
event status 0
AUX_SMPH registers.
reg32_t SMPH4
semaphore 4
reg32_t SMPH5
semaphore 5
reg32_t SMPH0
semaphore 0
reg32_t SMPH6
semaphore 6
reg32_t SMPH7
semaphore 7
reg32_t SMPH1
semaphore 1
reg32_t SMPH3
semaphore 3
reg32_t AUTOTAKE
sticky request for single semaphore
reg32_t SMPH2
semaphore 2
AUX_TDC registers.
reg32_t CTL
control
reg32_t TRIGCNTCFG
trigger counter config
reg32_t PRECTL
prescaler control
reg32_t PRECNT
prescaler counter
reg32_t TRIGCNTLOAD
trigger counter load
reg32_t STAT
status
reg32_t TRIGCNT
trigger counter
reg32_t SATCFG
saturaion configuration
reg32_t TRIGSRC
trigger source
reg32_t RESULT
result
AUX_TIMER registers.
reg32_t T1CFG
timer 1 config
reg32_t T1CTL
timer 1 control
reg32_t T0CFG
timer 0 config
reg32_t T0CTL
timer 0 control
reg32_t T1TARGET
timer 1 target
reg32_t T0TARGET
timer 0 target
AUX_WUC registers.
reg32_t CLKLFREQ
low frequency clock request
reg32_t ADCCLKCTL
ADC clock control.
reg32_t MODCLKEN1
module clock enable 1
reg32_t TDCCLKCTL
TDC clock control.
reg32_t AUXIOLATCH
AUX input output latch.
reg32_t RTCSUBSECINC1
real time counter sub second increment 1
reg32_t RTCSUBSECINCCTL
real time counter sub second increment control
reg32_t MCUBUSCTL
MCU bus control.
reg32_t REFCLKCTL
reference clock control
reg32_t WUEVCLR
wake-up event clear
reg32_t MCUBUSSTAT
MCU bus status.
reg32_t CLKLFACK
low frequency clock acknowledgement
reg32_t PWRDWNREQ
power down request
reg32_t RTCSUBSECINC0
real time counter sub second increment 0
reg32_t WUEVFLAGS
wake-up event flags
reg32_t MODCLKEN0
module clock enable
reg32_t PWRDWNACK
power down acknowledgement
reg32_t PWROFFREQ
power off request
reg32_t AONCTLSTAT
AON domain control status.