API_DeviceDriver

Functions

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.

Function Documentation

KZSTATUS_t KzAudioStart ( KzAudioCbk_t  cbk,
long  lSampleRate,
int  nBlocks,
int  nChannels 
)

Audio start.

Parameters:
cbk User callback function. This function is called in Audio Task(highest priority) every nBlocks.
lSampleRate Audio sample rate. now you can set only 48000.
nBlocks Audio blocks that callback function has. This must be a multiple of 8(SAMPLES_PER_INTR defined in kzdev_audio.c).
nChannels numober of the Audio Channels (1-4)
Returns:
KZ_OK Success
KZ_ERR Fail to start Audio
KZSTATUS_t KzAudioStop ( void   ) 

Audio stop.

Returns:
KZ_OK Success (constant)
KZSTATUS_t KzLedBlink ( KzLED_t  nLedNo,
int  nOnTime,
int  nOffTime 
)

Set LED blink.

Parameters:
nLedNo KOBANZAME hardware LED number
nOnTime Interval of LED Lit time (ms)
nOffTime Interval of LED Off time (ms)
Returns:
KZ_OK Success
KZ_ERR Undefined led number
KZSTATUS_t KzLedOff ( KzLED_t  nLedNo  ) 

Set LED OFF.

Parameters:
nLedNo KOBANZAME hardware LED number
Returns:
KZ_OK Success
KZ_ERR Undefined led number
KZSTATUS_t KzLedOn ( KzLED_t  nLedNo  ) 

Set LED ON.

Parameters:
nLedNo KOBANZAME hardware LED number
Returns:
KZ_OK Success
KZ_ERR Undefined led number
KZSTATUS_t KzMemsStart ( KzMemsCbk_t  cbk  ) 

MEMS start.

Parameters:
cbk User callback function. This function is called in DeviceDriver(middle priority) every MEMS Status changes.
Returns:
KZ_OK Success
KZ_ERR Fail to start MEMS
KZSTATUS_t KzMemsStop ( void   ) 

MEMS stop.

Returns:
KZ_OK Success
KZ_ERR Fail to stop
KZSTATUS_t KzSwStart ( KzSwCbk_t  cbk  ) 

Swith start.

Parameters:
cbk User callback function. This function is called in DeviceDriver(middle priority) every switches Status changes.
Returns:
KZ_OK Success
KZ_ERR Fail to start switch
KZSTATUS_t KzSwStop ( void   ) 

Swith stop.

Returns:
KZ_OK Success
KZ_ERR Fail to stop switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated by  doxygen 1.6.2