LIBML  Version 3.2.4
LIBML DSP Software Library
Functions
Convert 16-bit Integer value
Collaboration diagram for Convert 16-bit Integer value:

Functions

void tpt_q15_to_f32 (f32_t *aOutData, const q15_t *aInData, uint32_t aCount)
 Converts the elements of the Q15 vector to floating-point vector. More...
 
void tpt_q15_to_f64 (f64_t *aOutData, const q15_t *aInData, uint32_t aCount)
 Converts the elements of the Q15 vector to floating-point vector. More...
 

Detailed Description

Function Documentation

◆ tpt_q15_to_f32()

void tpt_q15_to_f32 ( f32_t aOutData,
const q15_t aInData,
uint32_t  aCount 
)

Converts the elements of the Q15 vector to floating-point vector.

Parameters
[out]aOutDatapoints to the floating-point output vector
[in]aInDatapoints to the Q15 input vector
[in]aCountnumber of samples in each vector
Returns
none
Details
The equation used for the conversion process is:
    aOutData[n] = (f32_t) aInData[n] / 32768;   0 <= n < aCount.
  

◆ tpt_q15_to_f64()

void tpt_q15_to_f64 ( f64_t aOutData,
const q15_t aInData,
uint32_t  aCount 
)

Converts the elements of the Q15 vector to floating-point vector.

Parameters
[out]aOutDatapoints to the floating-point output vector
[in]aInDatapoints to the Q15 input vector
[in]aCountnumber of samples in each vector
Returns
none
Details
The equation used for the conversion process is:
    aOutData[n] = (f64_t) aInData[n] / 32768;   0 <= n < aCount.