File ns_tempco.c
FileList > apollo4 > ns_tempco.c
Go to the source code of this file
Temperature Compensation. More...
#include "ns_tempco.h"
#include "am_bsp.h"
#include "am_mcu_apollo.h"
#include "am_util.h"
#include "ns_ambiqsuite_harness.h"
#include "ns_core.h"
#include "ns_timer.h"
Public Attributes
Type | Name |
---|---|
ns_timer_config_t | g_ns_tempcoTimer = = { |
.api = &ns_timer_V1_0_0, | |
.timer = NS_TIMER_TEMPCO, | |
.enableInterrupt = true, | |
.periodInMicroseconds = 10 * 1024, | |
.callback = ns_tempco_callback} |
|
void * | g_ns_tempco_ADCHandle |
am_hal_adc_sample_t | g_ns_tempco_sSamples |
uint32_t | g_ns_tempco_ui32TempcoADCslot |
uint32_t | g_ns_tempco_ui32TempcoIsrRet |
Public Functions
Type | Name |
---|---|
uint32_t | ns_tempco_init (void) |
Public Static Functions
Type | Name |
---|---|
uint32_t | adc_temperature_samples_get (uint32_t ui32NumSamples, am_hal_adc_sample_t sSamples) |
void | adc_trigger_wait (void) |
void | ns_tempco_callback (ns_timer_config_t * c) |
Detailed Description
Author:
Carlos Morales
Version:
0.1
Date:
2022-11-03
Copyright:
Copyright (c) 2022
Public Attributes Documentation
variable g_ns_tempcoTimer
ns_timer_config_t g_ns_tempcoTimer;
variable g_ns_tempco_ADCHandle
void* g_ns_tempco_ADCHandle;
variable g_ns_tempco_sSamples
am_hal_adc_sample_t g_ns_tempco_sSamples[AM_HAL_TEMPCO_NUMSAMPLES];
variable g_ns_tempco_ui32TempcoADCslot
uint32_t g_ns_tempco_ui32TempcoADCslot;
variable g_ns_tempco_ui32TempcoIsrRet
uint32_t g_ns_tempco_ui32TempcoIsrRet;
Public Functions Documentation
function ns_tempco_init
uint32_t ns_tempco_init (
void
)
Public Static Functions Documentation
function adc_temperature_samples_get
static uint32_t adc_temperature_samples_get (
uint32_t ui32NumSamples,
am_hal_adc_sample_t sSamples
)
function adc_trigger_wait
static void adc_trigger_wait (
void
)
function ns_tempco_callback
static void ns_tempco_callback (
ns_timer_config_t * c
)
The documentation for this class was generated from the following file neuralSPOT/neuralspot/ns-peripherals/src/apollo4/ns_tempco.c