File tree Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Expand file tree Collapse file tree 2 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 7
7
#include <stdlib.h>
8
8
#include "DataSampling.h"
9
9
/*********************************************************************************/
10
- #if (DATA_SAMPLING_REVISION_DATE != 20171017 )
10
+ #if (DATA_SAMPLING_REVISION_DATE != 20180403 )
11
11
#error wrong include file. (DataSampling.h)
12
12
#endif
13
13
/*********************************************************************************/
@@ -131,3 +131,24 @@ int DataSamplingGetData(tag_DataSampling *Smp, int Data)
131
131
return Result ;
132
132
}
133
133
/*********************************************************************************/
134
+ /*
135
+ 1) 인수
136
+ - Smp : tag_DataSampling 인스턴스의 주소.
137
+
138
+ 2) 반환
139
+ - 없음.
140
+
141
+ 3) 설명
142
+ - 버퍼 초기화 실행.
143
+ */
144
+ void DataSamplingResetData (tag_DataSampling * Smp )
145
+ {
146
+ if ((Smp -> Bit .InitGeneral == false) || (Smp -> Bit .InitFillBuffer == false))
147
+ {
148
+ return ;
149
+ }
150
+
151
+ Smp -> Bit .InitFillBuffer = false;
152
+ FillBuffer (Smp , 0 );
153
+ }
154
+ /*********************************************************************************/
Original file line number Diff line number Diff line change 7
7
#ifndef __DATA_SAMPLING_H__
8
8
#define __DATA_SAMPLING_H__
9
9
/*********************************************************************************/
10
- #define DATA_SAMPLING_REVISION_DATE 20171017
10
+ #define DATA_SAMPLING_REVISION_DATE 20180403
11
11
/*********************************************************************************/
12
12
/** REVISION HISTORY **/
13
13
/*
14
+ 2018. 04. 03. - DataSamplingResetData() 함수 추가.
15
+ Jeong Hyun Gu
16
+
14
17
2017. 10. 17. - 초기버전.
15
18
Jeong Hyun Gu
16
19
*/
@@ -47,6 +50,7 @@ typedef struct
47
50
char DataSamplingInitGeneral (tag_DataSampling * Smp , int BufSize );
48
51
void DataSamplingChangeLevel (tag_DataSampling * Smp , int Level );
49
52
int DataSamplingGetData (tag_DataSampling * Smp , int Data );
53
+ void DataSamplingResetData (tag_DataSampling * Smp );
50
54
51
55
/*********************************************************************************/
52
56
#endif //__DATA_SAMPLING_H__
You can’t perform that action at this time.
0 commit comments