XCORE SDK
XCORE Software Development Kit
dc_elimination.h
1 // Copyright 2022 XMOS LIMITED.
2 // This Software is subject to the terms of the XMOS Public Licence: Version 1.
3 
4 #pragma once
5 
6 #include "api.h"
7 #include <stdint.h>
8 
13 C_API_START
14 
59 MA_C_API
60 typedef struct {
62  int64_t prev_y;
64 
65 
80 MA_C_API
82  dcoe_chan_state_t state[],
83  const unsigned chan_count);
84 
85 
119 MA_C_API
121  int32_t new_output[],
122  dcoe_chan_state_t state[],
123  int32_t new_input[],
124  const unsigned chan_count);
125 
126 C_API_END
void dcoe_state_init(dcoe_chan_state_t state[], const unsigned chan_count)
Initialize DCOE states.
void dcoe_filter(int32_t new_output[], dcoe_chan_state_t state[], int32_t new_input[], const unsigned chan_count)
Apply DCOE filter.
DC Offset Elimination (DCOE) State.
Definition: dc_elimination.h:60
int64_t prev_y
Definition: dc_elimination.h:62