PEController BSP v4
Board Support Package for PEController from Taraz Technologies
 
Loading...
Searching...
No Matches

Functions

uint32_t Stats_Compute_SingleSample (float *data, temp_stats_data_t *tempStats, stats_data_t *stats, int chCount)
 Insert new data for multiple channel statistics from a single buffer with samples in ping-pong fashion.
 
uint32_t Stats_Compute_MultiSample_SingleChannel_16offset (float *data, temp_stats_data_t *tempStats, stats_data_t *stats, int sampleCount)
 Insert new data for single channel statistics. The channel data is available after every 15 samples in the data buffer.
 
uint32_t Stats_Compute_MultiSample_16ch (float *data, temp_stats_data_t *tempStats, stats_data_t *stats, int sampleCount)
 Insert new data for 16-channel statistics from a single buffer with samples in ping-pong fashion.
 
void Stats_Reset (temp_stats_data_t *tempStats, stats_data_t *stats, int chCount)
 Reset the statistics data.
 

Detailed Description

Function Documentation

◆ Stats_Compute_MultiSample_16ch()

uint32_t Stats_Compute_MultiSample_16ch ( float *  data,
temp_stats_data_t tempStats,
stats_data_t stats,
int  sampleCount 
)
extern
Parameters
dataPointer to the first element of the new data array.
tempStatsPointer to the first element of the temporary statistics array.
statsPointer to the first element of the statistics array.
sampleCountNumber of samples for the channel.
Returns
Returns zero if new results are not available else relevant bit is turned for each channel with new result is 1.

◆ Stats_Compute_MultiSample_SingleChannel_16offset()

uint32_t Stats_Compute_MultiSample_SingleChannel_16offset ( float *  data,
temp_stats_data_t tempStats,
stats_data_t stats,
int  sampleCount 
)
extern
Parameters
dataPointer to the first element of the new data array.
tempStatsPointer to the first element of the temporary statistics array.
statsPointer to the first element of the statistics array.
sampleCountNumber of samples for the channel.
Returns
Returns 1 if new results are available else zero.

◆ Stats_Compute_SingleSample()

uint32_t Stats_Compute_SingleSample ( float *  data,
temp_stats_data_t tempStats,
stats_data_t stats,
int  chCount 
)
extern
Parameters
dataPointer to the first element of the new data array.
tempStatsPointer to the first element of the temporary statistics array.
statsPointer to the first element of the statistics array.
chCountNumber of consecutive channels for the statistical computations.
Returns
Returns non-zero if new results are available else 0.

◆ Stats_Reset()

void Stats_Reset ( temp_stats_data_t tempStats,
stats_data_t stats,
int  chCount 
)
extern
Parameters
tempStatsPointer to the first element of the temporary statistics array.
statsPointer to the first element of the statistics array.
chCountNumber of consecutive channels for the statistical computations.