#include <aversive.h>
#include "ramp.h"
Go to the source code of this file.
Functions | |
void | ramp_init (struct ramp_filter *r) |
Initialisation of the ramp_filter structur. | |
void | ramp_set_vars (struct ramp_filter *r, uint32_t neg, uint32_t pos) |
Set the fields of the ramp_filter structur. | |
int32_t | ramp_do_filter (void *data, int32_t in) |
Apply ramp_filter to a ramp. |
int32_t ramp_do_filter | ( | void * | r, | |
int32_t | in | |||
) |
Apply ramp_filter to a ramp.
r | ramp_filter used to filter the in | |
in | ramp to filter |
Definition at line 56 of file ramp.c.
References ramp_filter::prev_out, ramp_filter::var_neg, and ramp_filter::var_pos.
void ramp_init | ( | struct ramp_filter * | r | ) |
Initialisation of the ramp_filter structur.
r | ramp_filter structur to initiate |
Definition at line 28 of file ramp.c.
References IRQ_LOCK, IRQ_UNLOCK, ramp_filter::prev_out, ramp_filter::var_neg, and ramp_filter::var_pos.
void ramp_set_vars | ( | struct ramp_filter * | r, | |
uint32_t | neg, | |||
uint32_t | pos | |||
) |
Set the fields of the ramp_filter structur.
r | ramp_structure to modificate | |
neg | limit for the negative variation | |
pos | limit for the positive variation |
Definition at line 43 of file ramp.c.
References IRQ_LOCK, IRQ_UNLOCK, ramp_filter::var_neg, and ramp_filter::var_pos.