Nordic Semiconductor nRF5 AirFuel SDK  version 2.2.0
ptu_hal.h
Go to the documentation of this file.
1 /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
2  *
3  * The information contained herein is property of Nordic Semiconductor ASA.
4  * Terms and conditions of usage are described in detail in NORDIC
5  * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
6  *
7  * Licensees are granted free, non-transferable use of the information. NO
8  * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
9  * the file.
10  *
11  */
12 
20 #ifndef __PTU_HAL_H__
21 #define __PTU_HAL_H__
22 
23 #include <stdbool.h>
24 #include <stdint.h>
25 
26 /******************************************************************************
27  * Main API
28  ******************************************************************************/
29 
34 uint32_t ptu_hal_init(void);
35 
42 uint32_t ptu_hal_poweramp_enable_set(bool enable);
43 
50 uint32_t ptu_hal_poweramp_enable_get(bool * enable);
51 
58 uint32_t ptu_hal_poweramp_level_set(uint16_t level);
59 
66 uint32_t ptu_hal_poweramp_level_get(uint16_t * level);
67 
74 uint32_t ptu_hal_itx_get(uint16_t * p_itx);
75 
82 uint32_t ptu_hal_vtx_get(uint16_t * p_vtx);
83 
90 uint32_t ptu_hal_ptx_get(uint16_t * p_ptx);
91 
92 
99 uint32_t ptu_hal_temperature_get(int16_t * p_temperature);
100 
101 #endif
102 
uint32_t ptu_hal_temperature_get(int16_t *p_temperature)
Read the board temperature.
uint32_t ptu_hal_poweramp_level_get(uint16_t *level)
Get output level setting of power amplifier.
Definition: ptu_hal_evkit.c:75
uint32_t ptu_hal_vtx_get(uint16_t *p_vtx)
Read resonator voltage.
Definition: ptu_hal_evkit.c:91
uint32_t ptu_hal_poweramp_enable_set(bool enable)
Enable power amplifier output (resonator power on).
Definition: ptu_hal_evkit.c:55
uint32_t ptu_hal_ptx_get(uint16_t *p_ptx)
Read resonator voltage.
Definition: ptu_hal_evkit.c:99
uint32_t ptu_hal_poweramp_enable_get(bool *enable)
Get status of power amplifier output enable (resonator power on).
Definition: ptu_hal_evkit.c:61
uint32_t ptu_hal_init(void)
Initialize the PTU's Hardware abstraction layer.
Definition: ptu_hal_evkit.c:44
uint32_t ptu_hal_poweramp_level_set(uint16_t level)
Set output level of power amplifier (resonator power).
Definition: ptu_hal_evkit.c:69
uint32_t ptu_hal_itx_get(uint16_t *p_itx)
Read the value of ITX.
Definition: ptu_hal_evkit.c:83