cc26xx_cc13xx_power.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Locha Inc
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 CC26XX_CC13XX_POWER_H
20 #define CC26XX_CC13XX_POWER_H
21 
22 #include <cc26xx_cc13xx.h>
23 #include <stdbool.h>
24 
25 #include "periph/uart.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
34 typedef enum {
41 
50 bool power_is_domain_enabled(const power_domain_t domain);
51 
57 void power_enable_domain(const power_domain_t domain);
58 
62 void power_clock_enable_gpio(void);
63 
69 void power_clock_enable_gpt(uint32_t tim);
70 
74 void power_clock_enable_i2c(void);
75 
82 
89 
90 #ifdef __cplusplus
91 } /* end extern "C" */
92 #endif
93 
94 #endif /* CC26XX_CC13XX_POWER_H */
95 
power_is_domain_enabled
bool power_is_domain_enabled(const power_domain_t domain)
Is power domain enabled?
power_clock_enable_gpio
void power_clock_enable_gpio(void)
Enable GPIO clock.
uart_t
unsigned int uart_t
Define default UART type identifier.
Definition: uart.h:76
uart.h
Low-level UART peripheral driver interface definition.
power_clock_disable_uart
void power_clock_disable_uart(uart_t uart)
Disable UART clocks.
power_clock_enable_uart
void power_clock_enable_uart(uart_t uart)
Enable UART clocks.
POWER_DOMAIN_PERIPHERALS
@ POWER_DOMAIN_PERIPHERALS
Peripherals domain.
Definition: cc26xx_cc13xx_power.h:35
cc26xx_cc13xx.h
CC26xx, CC13xx definitions.
POWER_DOMAIN_VIMS
@ POWER_DOMAIN_VIMS
VIMS domain.
Definition: cc26xx_cc13xx_power.h:39
power_clock_enable_gpt
void power_clock_enable_gpt(uint32_t tim)
Enable General Purpose Timer clock.
power_domain_t
power_domain_t
Power domains.
Definition: cc26xx_cc13xx_power.h:34
power_clock_enable_i2c
void power_clock_enable_i2c(void)
Enable I2C clock.
POWER_DOMAIN_RFC
@ POWER_DOMAIN_RFC
RF Core domain.
Definition: cc26xx_cc13xx_power.h:37
power_enable_domain
void power_enable_domain(const power_domain_t domain)
Enable the specified power domain.
POWER_DOMAIN_SERIAL
@ POWER_DOMAIN_SERIAL
Serial domain.
Definition: cc26xx_cc13xx_power.h:36
POWER_DOMAIN_CPU
@ POWER_DOMAIN_CPU
CPU domain.
Definition: cc26xx_cc13xx_power.h:38