Skip to content

Commit e89d93d

Browse files
committed
add comment
1 parent 6c7cb63 commit e89d93d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

DataSampling.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@ static tS32 *pS32;
2121
static tS32 Ret;
2222

2323
/*********************************************************************************/
24+
/*
25+
1) 인수
26+
- Smp : tag_DataSampling 인스턴스의 주소.
27+
- Idx : 데이터 삽입 위치를 지시하는 index.
28+
- Data : 삽입할 데이터.
29+
30+
2) 반환
31+
- 없음.
32+
33+
3) 설명
34+
- 버퍼에 데이터 삽입.
35+
*/
2436
inline static void InToBuf(tag_DataSampling *Smp, tU8 Idx, tS32 Data)
2537
{
2638
switch(Smp->DataSize)
@@ -31,6 +43,17 @@ inline static void InToBuf(tag_DataSampling *Smp, tU8 Idx, tS32 Data)
3143
}
3244
}
3345
/*********************************************************************************/
46+
/*
47+
1) 인수
48+
- Smp : tag_DataSampling 인스턴스의 주소.
49+
- Idx : 데이터 삽입 위치를 지시하는 index.
50+
51+
2) 반환
52+
- 읽은 데이터.
53+
54+
3) 설명
55+
- 버퍼에서 특정 index의 데이터를 반환한다.
56+
*/
3457
inline static tS32 OutFromBuf(tag_DataSampling *Smp, tU8 Idx)
3558
{
3659
switch(Smp->DataSize)

0 commit comments

Comments
 (0)