28 #ifndef INC_KERNEL_OC_KPRINT_H_ 29 #define INC_KERNEL_OC_KPRINT_H_ 39 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 43 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 51 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ 55 extern oC_ErrorCode_t oC_KPrint_TurnOn (
void );
56 extern oC_ErrorCode_t oC_KPrint_TurnOff (
void );
57 extern oC_ErrorCode_t
oC_KPrint_Format (
char * outBuffer , oC_UInt_t Size ,
const char * Format , va_list ArgumentList );
58 extern oC_ErrorCode_t oC_KPrint_Printf (
char * outBuffer , oC_UInt_t Size , oC_IoFlags_t IoFlags ,
const char * Format , ... );
59 extern oC_ErrorCode_t oC_KPrint_VPrintf (
char * outBuffer , oC_UInt_t Size , oC_IoFlags_t IoFlags ,
const char * Format , va_list ArgumentList );
60 extern oC_ErrorCode_t oC_KPrint_DriverPrintf (
char * outBuffer , oC_UInt_t Size , oC_IoFlags_t IoFlags , oC_Driver_t Driver ,
const char * Format , ... );
61 extern oC_ErrorCode_t oC_KPrint_FormatScanf (
const char * Buffer ,
const char * Format , va_list ArgumentList );
62 extern oC_ErrorCode_t oC_KPrint_Scanf (
char * outBuffer , oC_UInt_t Size , oC_IoFlags_t IoFlags ,
const char * Format , ... );
63 extern oC_ErrorCode_t oC_KPrint_VScanf (
char * outBuffer , oC_UInt_t Size , oC_IoFlags_t IoFlags ,
const char * Format , va_list ArgumentList );
64 extern oC_ErrorCode_t oC_KPrint_WriteToStdOut ( oC_IoFlags_t IoFlags ,
const char * Buffer , uint32_t Size );
65 extern oC_ErrorCode_t oC_KPrint_ReadFromStdIn ( oC_IoFlags_t IoFlags ,
char * outBuffer , uint32_t Size );
67 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________ The file with interface for driver creating.
oC_ErrorCode_t oC_KPrint_Format(char *outBuffer, oC_UInt_t Size, const char *Format, va_list ArgumentList)