iLLD_TC27xC
1.0
IfxStdIf_DPipe.c
Go to the documentation of this file.
1
/**
2
* \file IfxStdIf_DPipe.c
3
* \brief Standard interface: Data Pipe
4
* \ingroup IfxStdIf
5
*
6
* \version iLLD_0_1_0_10
7
* \copyright Copyright (c) 2013 Infineon Technologies AG. All rights reserved.
8
*
9
*
10
* IMPORTANT NOTICE
11
*
12
*
13
* Infineon Technologies AG (Infineon) is supplying this file for use
14
* exclusively with Infineon's microcontroller products. This file can be freely
15
* distributed within development tools that are supporting such microcontroller
16
* products.
17
*
18
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21
* INFINEON SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL,
22
* OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
23
*
24
*/
25
26
#include "
IfxStdIf_DPipe.h
"
27
#include "
_Utilities/Ifx_Assert.h
"
28
29
#include <string.h>
30
#include <stdio.h>
31
#include <stdarg.h>
32
33
void
IfxStdIf_DPipe_print
(
IfxStdIf_DPipe
*stdif,
pchar
format, ...)
34
{
35
if
(!stdif->
txDisabled
)
36
{
37
char
message[
STDIF_DPIPE_MAX_PRINT_SIZE
+ 1];
38
Ifx_SizeT
count;
39
va_list args;
40
va_start(args, format);
41
vsprintf((
char
*)message, format, args);
42
va_end(args);
43
count = (
Ifx_SizeT
)strlen(message);
44
IFX_ASSERT
(
IFX_VERBOSE_LEVEL_ERROR
, count <
STDIF_DPIPE_MAX_PRINT_SIZE
);
45
//return
46
IfxStdIf_DPipe_write
(stdif, (
void
*)message, &count,
TIME_INFINITE
);
47
}
48
else
49
{
50
//return TRUE;
51
}
52
}
home
mclld
Libraries
release
iLLD_0_1_0_10
src
ifx
SrvSw
StdIf
IfxStdIf_DPipe.c
Generated by
1.8.4