kzdev.c File Reference

KOBANZAME SDK Device Drivers. More...

#include "kobanzame.h"
Include dependency graph for kzdev.c:

Defines

#define USING_LED_AS_DEBUG_PORT   (0)
#define KZDEV_SW_NUM   (2)
#define KZDEV_SW_SCAN_TIME   (20)
#define KZDEV_LED_NUM   (2)
#define KZDEV_LED_SCAN_TIME   (5)
#define KZDEV_MMC_SCAN_TIME   (10)
#define MEMS_SCAN_COUNT   100

Enumerations

enum  LEDStat_t { LED_OFF, LED_ON, LED_Blink }

Functions

void KzAttIniDeviceDrivers (ID idCycDevPol, ID idTskDevPol)
 Driver Initialize.
void KzDevPollingTask (VP_INT arg)
 Device Driver Task.
void KzDevCycHander (void)
 Cyclic handler for Device Driver for making time tick.
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.
KZSTATUS_t KzAddCmdDeviceDriver (void)
 Add DeviceDriver commands.

Detailed Description

KOBANZAME SDK Device Drivers.

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.


Function Documentation

void KzAttIniDeviceDrivers ( ID  idCycDevPol,
ID  idTskDevPol 
)

Driver Initialize.

Parameters:
idCycDevPol ID for Device driver cyclic hander defined in kernel_id.h
idTskDevPol ID for Device driver task defined in kernel_id.h
Note:
SDK Private function
void KzDevCycHander ( void   ) 

Cyclic handler for Device Driver for making time tick.

Note:
SDK Private function
void KzDevPollingTask ( VP_INT  arg  ) 

Device Driver Task.

Note:
SDK Private function
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2