Lines Matching refs:int16Sample
1522 pui32LGOutBuffer->int16Sample = AM_HAL_AUDADC_FIFO_LGDATA(ui32Sample) << 4; in am_hal_audadc_samples_read()
1528 if ((pui32LGOutBuffer->int16Sample >= 0) && in am_hal_audadc_samples_read()
1529 (i32OffsetAdj > (32767 - pui32LGOutBuffer->int16Sample))) in am_hal_audadc_samples_read()
1531 pui32LGOutBuffer->int16Sample = 32767; // Saturation in am_hal_audadc_samples_read()
1533 else if ((pui32LGOutBuffer->int16Sample < 0) && in am_hal_audadc_samples_read()
1534 (i32OffsetAdj < (-32768 - pui32LGOutBuffer->int16Sample))) in am_hal_audadc_samples_read()
1536 pui32LGOutBuffer->int16Sample = -32768; // Saturation in am_hal_audadc_samples_read()
1540 pui32LGOutBuffer->int16Sample += i32OffsetAdj; in am_hal_audadc_samples_read()
1550 pui32HGOutBuffer->int16Sample = AM_HAL_AUDADC_FIFO_HGDATA(ui32Sample) << 4; in am_hal_audadc_samples_read()
1556 if ((pui32HGOutBuffer->int16Sample >= 0) && in am_hal_audadc_samples_read()
1557 (i32OffsetAdj > (32767 - pui32HGOutBuffer->int16Sample))) in am_hal_audadc_samples_read()
1559 pui32HGOutBuffer->int16Sample = 32767; // Saturation in am_hal_audadc_samples_read()
1561 else if ((pui32HGOutBuffer->int16Sample < 0) && in am_hal_audadc_samples_read()
1562 (i32OffsetAdj < (-32768 - pui32HGOutBuffer->int16Sample))) in am_hal_audadc_samples_read()
1564 pui32HGOutBuffer->int16Sample = -32768; // Saturation in am_hal_audadc_samples_read()
1568 pui32HGOutBuffer->int16Sample += i32OffsetAdj; in am_hal_audadc_samples_read()
1588 …pui32LGOutBuffer->int16Sample = AM_HAL_AUDADC_FIFO_LGDATA(*pui32InSampleBuffer) << 4; //extend … in am_hal_audadc_samples_read()
1594 if ((pui32LGOutBuffer->int16Sample >= 0) && in am_hal_audadc_samples_read()
1595 (i32OffsetAdj > (32767 - pui32LGOutBuffer->int16Sample))) in am_hal_audadc_samples_read()
1597 pui32LGOutBuffer->int16Sample = 32767; // Saturation in am_hal_audadc_samples_read()
1599 else if ((pui32LGOutBuffer->int16Sample < 0) && in am_hal_audadc_samples_read()
1600 (i32OffsetAdj < (-32768 - pui32LGOutBuffer->int16Sample))) in am_hal_audadc_samples_read()
1602 pui32LGOutBuffer->int16Sample = -32768; // Saturation in am_hal_audadc_samples_read()
1606 pui32LGOutBuffer->int16Sample += i32OffsetAdj; in am_hal_audadc_samples_read()
1616 … pui32HGOutBuffer->int16Sample = AM_HAL_AUDADC_FIFO_HGDATA(*pui32InSampleBuffer) << 4; in am_hal_audadc_samples_read()
1622 if ((pui32HGOutBuffer->int16Sample >= 0) && in am_hal_audadc_samples_read()
1623 (i32OffsetAdj > (32767 - pui32HGOutBuffer->int16Sample))) in am_hal_audadc_samples_read()
1625 pui32HGOutBuffer->int16Sample = 32767; // Saturation in am_hal_audadc_samples_read()
1627 else if ((pui32HGOutBuffer->int16Sample < 0) && in am_hal_audadc_samples_read()
1628 (i32OffsetAdj < (-32768 - pui32HGOutBuffer->int16Sample))) in am_hal_audadc_samples_read()
1630 pui32HGOutBuffer->int16Sample = -32768; // Saturation in am_hal_audadc_samples_read()
1634 pui32HGOutBuffer->int16Sample += i32OffsetAdj; in am_hal_audadc_samples_read()