KOBANZAME SDK Standard Include file. More...
#include "target_def.h"#include "kzconfig.h"#include "kernel.h"#include <stdio.h>#include "kzstdio.h"#include "kzdev.h"#include "kzdsp.h"#include "kzversion.h"#include "kzprivate.h"

Go to the source code of this file.
Data Structures | |
| struct | KzCmdRegist_t |
Defines | |
| #define | numof(x) sizeof(x)/sizeof(x[0]) |
| #define | KZ_AUDIOCLUSTAR (4) |
| Numbers of the Audio Clustar, Audio Clustar Order is L0/R0/L1/R1. | |
| #define | L1DATA_S __attribute__((__section__(".l1scratch" ))) |
| Memory section directive: L1 SCRATCH. | |
| #define | L1DATA_A __attribute__((__section__(".l1data_a" ))) |
| Memory section directive: L1 DATA A. | |
| #define | L1DATA_B __attribute__((__section__(".l1data_b"))) |
| Memory section directive: L1 DATA B. | |
| #define | L1CODE __attribute__((__section__(".l1code"))) |
| Memory section directive: L1 CODE. | |
| #define | L3DATA __attribute__((__section__(".l3data"))) |
| Memory section directive: SDRAM DATA. | |
| #define | L3CODE __attribute__((__section__(".l3code"))) |
| Memory section directive: SDRAM CODE. | |
Typedefs | |
| typedef int(* | KzFnCmd_t )(int argc, char *argv[]) |
| command line function's type | |
| typedef void(* | KzSwCbk_t )(KzSW_t nSw, BOOL bPushed) |
| callback type for physical switches change status | |
| typedef void(* | KzMemsCbk_t )(int x, int y, int z) |
| callback function type for MEMS changes | |
| typedef void(* | KzAudioCbk_t )(int *in, int *out, int nBlocks, int nChannels) |
| callback function type for audio | |
Enumerations | |
| enum | KzSW_t { eKzSW0, eKzSW1, numof_KzSW } |
| enum | KzLED_t { eKzLED0, eKzLED1, numof_KzLED } |
| enum | KZSTATUS_t { KZ_OK = 0, KZ_ERR = -1 } |
Functions | |
| KZSTATUS_t | KzCmdlineStart (void) |
| Command Line Start. | |
| KZSTATUS_t | KzCmdlineExit (void) |
| Command Line Exit. | |
| KZSTATUS_t | KzCmdlineAdd (const KzCmdRegist_t *exe) |
| Add a Command. | |
| KZSTATUS_t | KzCmdlineAddMany (const KzCmdRegist_t *exes) |
| Add Many Commands. | |
| KZSTATUS_t | KzAddCmdDeviceDriver (void) |
| Add DeviceDriver commands. | |
| KZSTATUS_t | KzSwStart (KzSwCbk_t cbk) |
| Swith start. | |
| KZSTATUS_t | KzSwStop (void) |
| Swith stop. | |
| KZSTATUS_t | KzLedOn (KzLED_t nLedNo) |
| Set LED ON. | |
| KZSTATUS_t | KzLedOff (KzLED_t nLedNo) |
| Set LED OFF. | |
| KZSTATUS_t | KzLedBlink (KzLED_t nLedNo, int nOnTime, int nOffTime) |
| Set LED blink. | |
| KZSTATUS_t | KzMemsStart (KzMemsCbk_t cbk) |
| MEMS start. | |
| KZSTATUS_t | KzMemsStop (void) |
| MEMS stop. | |
| KZSTATUS_t | KzAudioStart (KzAudioCbk_t cbk, long lSampleRate, int nBlocks, int nChannels) |
| Audio start. | |
| KZSTATUS_t | KzAudioStop (void) |
| Audio stop. | |
| Inline int | KzGetVersionMajor (void) |
| Get KOBANZAME SDK Major Version. | |
| Inline int | KzGetVersionMinor (void) |
| Get KOBANZAME SDK Minor Version. | |
| Inline int | KzGetBuildIdx (void) |
| Get KOBANZAME SDK Build index. | |
| Inline const char * | KzGetBuildDate (void) |
| Get KOBANZAME SDK Build Date String. | |
| Inline const char * | KzGetCopyRight (void) |
| Get KOBANZAME SDK Copyright String. | |
| KZSTATUS_t | KzFilesystemStart (void) |
| Filesystem start. | |
| KZSTATUS_t | KzAddCmdFilesystem (void) |
| Add Filesystem commands. | |
| KZSTATUS_t | KzAddCmdStdioTest (void) |
| Add stdio test commands. | |
KOBANZAME SDK Standard Include file.
KOBANZAME SDK Software Developers Kit for Blackfin DSP Evaluation Board(KOBANZAME).
Copyright (C) 2010, KOBANZAME SDK Project, all right reserved
LICENSE: The software is a free and you can use and redistribute it for personal, non-profit or commercial products. Redistributions of source code must retain the above copyright notice. There is no warranty in this software, if you suffer any damages by using the software.
| #define numof | ( | x | ) | sizeof(x)/sizeof(x[0]) |
number of the contents
callback function type for audio
| in | audio input buffer from Audio Codec | |
| out | audio output buffer to Audio Codec | |
| nBlocks | number of the Audio blocks | |
| nChannels | numober of the Audio Channels (1-4) |
command line function's type
| argc | number of the arguments from command line | |
| argv | argument strings |
callback function type for MEMS changes
| x | MEMS X value | |
| y | MEMS Y value | |
| z | MEMS Z value |
callback type for physical switches change status
| nSw | KOBANZAME hardware switch ID | |
| bPushed | TRUE ... Pushed / FALSE ... Released |
| enum KzLED_t |
| enum KZSTATUS_t |
| enum KzSW_t |
| KZSTATUS_t KzAddCmdStdioTest | ( | void | ) |
Add stdio test commands.
1.6.2