1
00:00:00,060 --> 00:00:05,460
So first thing that you're going to do here is to declare it right to let it just go ahead.

2
00:00:05,610 --> 00:00:11,460
And we know that are send and receive function work for then you day to go to work.

3
00:00:12,150 --> 00:00:14,520
OK, you could clearly see.

4
00:00:15,540 --> 00:00:17,800
That are you what you sing?

5
00:00:17,890 --> 00:00:21,900
OK, expect the leader to be in, you wait for my right.

6
00:00:22,230 --> 00:00:24,090
We go ahead and we declare.

7
00:00:24,240 --> 00:00:25,290
You wait, right?

8
00:00:25,890 --> 00:00:32,000
And they just name this as the OK, and this will be an array consisting of an 11 elements.

9
00:00:32,580 --> 00:00:35,040
And will also be initializing it to ladies.

10
00:00:35,040 --> 00:00:35,610
Is you?

11
00:00:36,000 --> 00:00:36,540
Hello.

12
00:00:37,650 --> 00:00:43,440
Right, right, so if you count the number of bytes that we have, right, so we have one two three

13
00:00:43,440 --> 00:00:51,690
four five six seven eight nine 10 and 11 eight to 11 character averaging and each character can be represented

14
00:00:51,690 --> 00:00:52,250
within you.

15
00:00:52,490 --> 00:00:54,180
So this could be stored in this area.

16
00:00:54,450 --> 00:00:59,190
So once this is sent, this will serve as the data buffer for us.

17
00:00:59,190 --> 00:01:03,240
Right now, we call you what same function, right?

18
00:01:03,630 --> 00:01:12,440
So it will just be going ahead and then OK, after we perform an initialization we call Sane, right?

19
00:01:12,690 --> 00:01:15,680
First argument is an instance structure, which is you lot.

20
00:01:15,690 --> 00:01:20,700
And then second argument is the pointer to a little before, right?

21
00:01:20,730 --> 00:01:27,840
So here we could just add an embassy and then we could mention that phrase so far zero element of an

22
00:01:27,840 --> 00:01:28,140
finale.

23
00:01:28,230 --> 00:01:28,460
Right.

24
00:01:28,470 --> 00:01:34,950
So this is how we represent the appointed to our data over the other method that you will use this,

25
00:01:34,950 --> 00:01:36,960
you would just mention data, right?

26
00:01:36,960 --> 00:01:42,590
So this will be the second way that you have, which will be providing a correct address for our data

27
00:01:42,600 --> 00:01:43,050
before it.

28
00:01:43,070 --> 00:01:49,800
But the easier we will be using ampersand and then data zero to this basically mean the starting address

29
00:01:49,800 --> 00:01:51,420
of our body weight.

30
00:01:51,420 --> 00:01:57,480
So once this is specified, the next is to specify the number of bytes that we want to transmit.

31
00:01:57,480 --> 00:01:59,820
So here we want to transmit 11 by great.

32
00:02:00,330 --> 00:02:03,240
These are all the argument that you want to provide to.

33
00:02:03,510 --> 00:02:07,650
You are saying function right now, if you just read the description of this function.

34
00:02:09,050 --> 00:02:13,960
Now, this function have a different behavior, considering the different mood, so we are utilizing

35
00:02:13,970 --> 00:02:15,050
a formula here.

36
00:02:15,320 --> 00:02:21,220
So in a poll mode, this function will only send as much data as the can buffer, right?

37
00:02:22,350 --> 00:02:29,890
And if you exceed the size which the people could not hold in in that case, you need to repetitively

38
00:02:29,910 --> 00:02:31,200
run an application, right?

39
00:02:31,680 --> 00:02:35,320
There's also returned the number of bytes actually sent.

40
00:02:35,340 --> 00:02:41,100
So we need to wait till we reach to the value of 11 because we want the same 11 byte.

41
00:02:41,340 --> 00:02:46,320
So how we do that is that it just store this value in one variable.

42
00:02:46,350 --> 00:02:47,670
Now we know that this region is.

43
00:02:47,670 --> 00:02:50,830
So do you let it just name discount hoagie?

44
00:02:51,840 --> 00:02:55,170
And initialize this to a z of so let me just copy this.

45
00:02:56,160 --> 00:03:00,240
OK, declared it over here, and initially it was hit right.

46
00:03:01,190 --> 00:03:08,540
So this variable will keep track of the number of bytes that are actually set right.

47
00:03:08,870 --> 00:03:16,730
So while we could just use while count is not equal to 11.

48
00:03:16,820 --> 00:03:19,910
OK, we could just say we do it here, right?

49
00:03:19,910 --> 00:03:26,150
So we could yet update the value of account and then we'll again be checking whether count is equal

50
00:03:26,240 --> 00:03:27,490
to 11 or not.

51
00:03:27,530 --> 00:03:27,800
Right?

52
00:03:29,090 --> 00:03:36,460
Again, as soon as our count becomes equal to 11, we'll be simply coming out of the what is right,

53
00:03:36,470 --> 00:03:38,480
and in that case, we could just mention.

54
00:03:39,400 --> 00:03:43,900
Data saying successfully, right.

55
00:03:44,350 --> 00:03:49,750
This is a one off movie that we have with us where what we are doing is we are calling you what the

56
00:03:49,750 --> 00:03:50,680
same function.

57
00:03:50,680 --> 00:03:56,170
And then this basically returns the number of bytes which are actually saying and we are waiting for

58
00:03:56,350 --> 00:03:58,570
our count to reach to a value of 11.

59
00:03:58,580 --> 00:04:02,920
So as soon as cowardly just to a value of 11 will be coming out of a while.

60
00:04:03,040 --> 00:04:09,850
And then we'll be sending the string data transmission, our data saying this successful right now here

61
00:04:09,850 --> 00:04:11,890
we need to verify whether.

62
00:04:13,040 --> 00:04:15,560
This returns bye, bye bye.

63
00:04:15,590 --> 00:04:22,520
There it is, with each new bite to whether it returns one or the total bytes that have been sent to

64
00:04:22,520 --> 00:04:23,130
flat rate.

65
00:04:24,020 --> 00:04:28,370
So that could be verified like this, so just go ahead and build an application project.

66
00:04:29,240 --> 00:04:29,570
OK.

67
00:04:29,870 --> 00:04:35,540
And what we're going to do is with each new iteration we'll get with each new iteration, we'll also

68
00:04:35,540 --> 00:04:39,130
be presenting the value of concrete so out.

69
00:04:39,830 --> 00:04:41,840
OK, but since 0d.

70
00:04:42,860 --> 00:04:46,460
And let me just try to bring the value of call, right?

71
00:04:47,770 --> 00:04:50,590
So if you just try to build an application project, no.

72
00:04:51,520 --> 00:04:51,850
OK.

73
00:04:52,210 --> 00:04:56,320
And then debug as launch one hideaway.

74
00:04:57,450 --> 00:05:03,090
So we do not need to do any changes to a serial terminal since we properly configured it to work at

75
00:05:03,090 --> 00:05:04,140
nine six zero zero.

76
00:05:04,560 --> 00:05:08,200
And now you could see you are in, it is successful.

77
00:05:08,230 --> 00:05:10,290
And hello world.

78
00:05:10,350 --> 00:05:11,760
OK, that is what we receive.

79
00:05:12,060 --> 00:05:20,730
Then count is the 11 right and finally data successfully we get so we will be waiting for all the 11

80
00:05:20,730 --> 00:05:24,370
byte to be transmitted and then will be coming out of this way.

81
00:05:24,390 --> 00:05:28,200
Look, and then we just mentioned to sing, OK, successful.

82
00:05:28,770 --> 00:05:30,090
This is what we going to do.

83
00:05:30,120 --> 00:05:32,790
Let it just proceed to build an application project.

84
00:05:33,240 --> 00:05:39,960
And once our build is successful, OK, we could just go ahead to our right this minute, OK, and then

85
00:05:41,010 --> 00:05:43,280
we will just go ahead and relaunch it.

86
00:05:43,350 --> 00:05:44,100
Debug fission.

87
00:05:44,160 --> 00:05:44,430
Right?

88
00:05:44,820 --> 00:05:50,550
So this will automatically reprogram that FPGA and since are white serial terminal is already connected

89
00:05:50,550 --> 00:05:52,680
to the correct portrait as well as correct.

90
00:05:53,020 --> 00:05:55,830
And you just need to go ahead and click on resume button, right?

91
00:05:55,830 --> 00:05:56,990
So you could see you.

92
00:05:57,000 --> 00:05:58,500
What you need is successful.

93
00:05:59,370 --> 00:06:05,400
Then we have to wait and see and successful to be able to send it correctly.

94
00:06:06,210 --> 00:06:11,060
You could just add a new link between Helloworld and data successfully, right?

95
00:06:11,070 --> 00:06:17,280
So here we could just add a new line corrected that is just again the builder application project and

96
00:06:17,280 --> 00:06:20,820
then try to run naked on an FPGA, right?

97
00:06:21,210 --> 00:06:24,210
So again, we will be launching our feedback session.

98
00:06:25,260 --> 00:06:29,810
And then once this is done, will just be clicking on a resume button, wait till you see you are in,

99
00:06:29,820 --> 00:06:35,940
it is successful at lower and then D.D.S. successful road to the Hallowell city that we have in that

100
00:06:36,450 --> 00:06:37,250
data buffer.

101
00:06:37,390 --> 00:06:44,010
So this is how we could proceed, sending the data to the UART terminal right now.

102
00:06:44,010 --> 00:06:49,370
The next target will be to understand how we receive the data from the city.
