#ifndef _aplmt_hardware_devantech_sp03_drvapi_h_ #define _aplmt_hardware_devantech_sp03_drvapi_h_ /*---------------------------------------------------------------------------- ** SUMMARY: Low-Level Interface for communicating with the Devantech LTD SP03 ** text-to-speech synthesizer (DRVDEVANSP03). ** ** THREAD-SAFETY ** ------------- ** The entire interface is *NOT* thread safe. The driver model assumes a ** single-thread-access model. The application should not directly access ** this API, but use the ITC wrappers (reqapi.h) ** ** ** CONFIGURATION ** ------------- ** COMPILE: none. ** ** APPLICATION: none. ** ** PLATFORM: none. ** ----------------------------------------------------------------------------*/ #include "apl/types/types.h" /* For: basic types */ #include "platform/sp03drvapi.h" /* For: platform support */ #ifdef __cplusplus extern "C" { #endif /*-------------- PUBLIC/PUBLISHED API --------------------------------------*/ /** This method is used to initialize the low-level driver Prototype: void AplmtDevan_sp03DrvInit(void); */ #define AplmtDevan_sp03DrvInit _AplmtDevan_sp03DrvInit /** This method sends the null terminate string to the SP03 and then waits for it to complete speaking it. Prototype: void AplmtDevan_sp03DrvSpeak( const char* text, AplByte vol, AplByte pitch, AplByte speed ); */ #define AplmtDevan_sp03DrvSpeak _AplmtDevan_sp03DrvSpeak /** This method has the SP03 say the indexed phrase (0-29) and then waits for it to complete speaking it. Prototype: void AplmtDevan_sp03DrvSpeakIndex( AplByte phraseIndex ); */ #define AplmtDevan_sp03DrvSpeakIndex _AplmtDevan_sp03DrvSpeakIndex #ifdef __cplusplus } #endif /*--------------------------------------------------------------------------*/ #endif /* end _aplmt_hardware_devantech_sp03_drvapi_h_ */