blob: 7a5be82d22d003fb4584bc002b62ce3cf77c4624 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef RVL_SDK_AI_H
#define RVL_SDK_AI_H
#include "common.h"
#ifdef __cplusplus
extern "C" {
#endif
// Forward declarations
typedef struct OSContext;
typedef void (*AIDMACallback)(void);
typedef enum {
AI_DSP_32KHZ,
AI_DSP_48KHZ,
} AIDSPSampleRate;
AIDMACallback AIRegisterDMACallback(AIDMACallback callback);
void AIInitDMA(void *buffer, u32 length);
void AIStartDMA(void);
void AIStopDMA(void);
u32 AIGetDMABytesLeft(void);
void AISetDSPSampleRate(u32 rate);
u32 AIGetDSPSampleRate(void);
void AIInit(void *stack);
void __AIDHandler(s16 intr, struct OSContext *ctx);
#ifdef __cplusplus
}
#endif
#endif
|