Smart Remote 3 nRF52 v1.2
Copy URL
Source
Libraries
dvi_adpcm.h
1
/*$$$LICENCE_NORDIC_STANDARD<2015>$$$*/
2
#ifndef _dvi_adpcm_h
3
#define _dvi_adpcm_h
4
5
#include <stdbool.h>
6
#include <stdint.h>
7
8
#ifdef __ICCARM__
9
typedef
__packed
struct
10
#else
11
typedef
struct
__attribute__((__packed__))
12
#endif
13
{
14
int16_t valpred;
/* Previous predicted value. */
15
uint8_t index;
/* Index into stepsize table. */
16
} dvi_adpcm_state_t;
17
18
int
dvi_adpcm_encode(
void
*in_buf,
int
in_size,
void
*out_buf,
int
*out_size,
void
*state,
bool
hflag);
19
25
void
dvi_adpcm_init_state(dvi_adpcm_state_t * state);
26
27
#endif
28