1
00:00:00,180 --> 00:00:05,420
Now we'll try to discuss how we use a rescue function that we have in any like this.

2
00:00:05,520 --> 00:00:05,780
All right.

3
00:00:06,510 --> 00:00:08,910
So let's just go through an entire quote.

4
00:00:08,910 --> 00:00:12,450
So I updated a good a bit as compared to our previous case.

5
00:00:12,750 --> 00:00:19,230
So here we have our data before which have data, which is how long it will get in that we plan to send

6
00:00:19,470 --> 00:00:21,100
to the city.

7
00:00:21,540 --> 00:00:24,210
Right now, our agenda will be to operate.

8
00:00:24,220 --> 00:00:25,470
You are CNN.

9
00:00:25,490 --> 00:00:26,690
Look, look back moves.

10
00:00:26,700 --> 00:00:32,770
What that will do with whatever data we transmit will be receiving back and then storing it in internally.

11
00:00:33,310 --> 00:00:40,200
OK, and then we'll be taking out the data from an outage before and then we'll be sending them back

12
00:00:40,200 --> 00:00:42,690
to the civil terminal in a normal rate.

13
00:00:43,050 --> 00:00:47,640
So if you are operating in a local look back mode and if you try to send the day, you won't be finding

14
00:00:47,640 --> 00:00:53,310
anything display on a console because the same data will be stored into the archive.

15
00:00:53,940 --> 00:01:01,110
So if you want to see a data on two accounts, we need to operate in that normal right here since we

16
00:01:01,110 --> 00:01:04,740
have those suits beatable for our size 11, right?

17
00:01:05,040 --> 00:01:09,630
So we need to declare receive before data again of size 11 by great.

18
00:01:09,630 --> 00:01:11,160
So that is what we do here.

19
00:01:11,370 --> 00:01:13,440
We have an issue like this to anyone.

20
00:01:13,680 --> 00:01:15,240
OK, then we have.

21
00:01:15,480 --> 00:01:15,970
You are.

22
00:01:16,380 --> 00:01:20,250
OK, so this platform and initialization of our you are very bitter.

23
00:01:20,430 --> 00:01:24,040
Now remember in this platform is also doing the same thing for us right now.

24
00:01:24,070 --> 00:01:30,690
Now, since we are manually performing an initialization of a peripheral, so the platform is not required,

25
00:01:30,690 --> 00:01:30,890
right?

26
00:01:30,900 --> 00:01:35,030
So you walk in it itself to perform an initialization of a peripheral right.

27
00:01:35,040 --> 00:01:41,210
So once this system, we proceed and first set up the loop back to local look back.

28
00:01:41,380 --> 00:01:44,900
So here we call you what you yes, take operation.

29
00:01:45,100 --> 00:01:49,230
So this is a function that is used to set the operating mode for our you want.

30
00:01:49,260 --> 00:01:55,020
And then we have a few different rules which are supported by you are straight, so we could operate

31
00:01:55,020 --> 00:01:55,880
in a normal mode.

32
00:01:55,890 --> 00:02:01,350
So here, whatever that we think will be displayed on a console and if you write it down.

33
00:02:01,600 --> 00:02:03,930
And so that is if you go to Vegas.

34
00:02:04,890 --> 00:02:07,570
So here you have an option to send readers to.

35
00:02:07,590 --> 00:02:11,940
Whatever you read in here will be stored in a CFP for electrical.

36
00:02:12,180 --> 00:02:14,220
So this is what we refer to as a normal mode.

37
00:02:14,490 --> 00:02:17,060
OK, the demo that we have is in local loop.

38
00:02:17,460 --> 00:02:25,080
So here whatever data we send to a console will be coming back to receiver and it will be automatically

39
00:02:25,080 --> 00:02:27,030
stored in and receive for it.

40
00:02:27,030 --> 00:02:32,280
So we'll be utilizing or will be switching between this mode in this specific example, right?

41
00:02:32,580 --> 00:02:38,180
So when we go to the main goal right here, we want to operate in the local loop.

42
00:02:38,520 --> 00:02:43,410
So whatever data we write to, a console will be automatically coming back to our rescue people and

43
00:02:43,410 --> 00:02:45,120
that is what we going to reiterate.

44
00:02:45,600 --> 00:02:47,060
Then we call Sandy.

45
00:02:47,190 --> 00:02:50,460
You know, this allow us to transmit the reader to a console, right?

46
00:02:50,790 --> 00:02:56,400
We need to specify an instance structure those sorts of data buffer and then the number of byte we are

47
00:02:56,400 --> 00:02:57,200
transmitting, right?

48
00:02:57,540 --> 00:03:00,330
Then we are waiting for the transmission to complete.

49
00:03:00,330 --> 00:03:05,760
And once that transmission is complete, we can see that since we are operating, are you are using

50
00:03:05,760 --> 00:03:11,140
and local loop back mode, whatever data we have transmitted will be automatically in and out before,

51
00:03:11,160 --> 00:03:11,420
right?

52
00:03:11,430 --> 00:03:17,310
So to take the lead out of an hour before we have a function referred to as it receive for it and it

53
00:03:17,700 --> 00:03:18,360
received.

54
00:03:18,650 --> 00:03:25,140
Now this returns the number of byte that we received or digging out from analytics before it.

55
00:03:25,350 --> 00:03:32,070
So with each new byte we dig out from an R, we need to increment the count, right?

56
00:03:32,310 --> 00:03:37,260
So here we declared when Congress, which is of s32 type and we initialize it to a zero.

57
00:03:37,260 --> 00:03:43,080
So with each new weight we take from it, Alex, before we get this will be returning one and that we

58
00:03:43,260 --> 00:03:47,130
we will be incrementing the value of account right now.

59
00:03:47,130 --> 00:03:53,610
One more thing that we need to make sure is with each new byte, you'll be getting a new element that

60
00:03:53,610 --> 00:03:54,870
you want this to ring that.

61
00:03:55,780 --> 00:03:56,250
Audie.

62
00:03:56,890 --> 00:04:00,100
So with each new element, you need to update the.

63
00:04:01,210 --> 00:04:04,580
The element out of an elevator, you want the studio, right?

64
00:04:04,900 --> 00:04:09,250
And how we had to do that is we knew that with each bite, if you count, will be incremental.

65
00:04:09,430 --> 00:04:15,370
So when we call received function here we have an instance structure and then the point of where we

66
00:04:15,370 --> 00:04:16,430
want was to delete.

67
00:04:16,450 --> 00:04:16,840
All right.

68
00:04:16,870 --> 00:04:21,130
This should also be dynamically updating with each new weight rate.

69
00:04:21,400 --> 00:04:28,000
So here now, instead of having this had this static, OK, what we are doing is we are calling the

70
00:04:28,000 --> 00:04:34,990
received data, which is the agreed that we declared for storing the data that we have in the Nordics

71
00:04:34,990 --> 00:04:35,380
before.

72
00:04:35,610 --> 00:04:41,770
OK, and the element where we want this to data will be updated dynamically as we choose to go right.

73
00:04:41,800 --> 00:04:46,060
So with each new byte we receive now will be incrementally by one.

74
00:04:46,330 --> 00:04:51,550
And this way we will be choosing the new element where we toward the value that we received from you

75
00:04:51,590 --> 00:04:52,390
are right.

76
00:04:52,570 --> 00:04:59,200
This logic that we have written with here will make sure that we take out 11 byte from Bill I before

77
00:05:00,070 --> 00:05:03,010
OK, and we store it into the data.

78
00:05:03,010 --> 00:05:07,420
Before that, we declared for storing the data that we received from that.

79
00:05:07,450 --> 00:05:08,140
You are great.

80
00:05:08,320 --> 00:05:14,320
What this is done now, we want to send the data that we have in a received data before on to concentrate.

81
00:05:14,350 --> 00:05:18,310
So we want to see the value of the data that we have received.

82
00:05:18,310 --> 00:05:19,810
But what so we need to operate?

83
00:05:20,020 --> 00:05:22,030
Are you watching it normally more now?

84
00:05:22,480 --> 00:05:26,050
So how we do that is we are getting calls set operation mode.

85
00:05:26,350 --> 00:05:32,040
OK, here now we are specifying that we want to operate a new normal, right?

86
00:05:32,320 --> 00:05:35,900
So once we set up, though, you want to operate in the normal mode.

87
00:05:36,520 --> 00:05:39,870
We need you just saying don't abide by by going to a concert.

88
00:05:40,090 --> 00:05:47,050
So how we do that is we declared one counter variable which keep the count of the byte that we sent

89
00:05:47,050 --> 00:05:52,870
to a console so far right so far equals to zero, i.e. less than 11 i + + zl print.

90
00:05:52,900 --> 00:06:00,590
If this is a function that we are utilizing, OK, and we are sending a bite by bite to the council.

91
00:06:00,650 --> 00:06:08,290
Now here you could really see the indexes evaluate and with each new iteration, I value will be automatically

92
00:06:08,290 --> 00:06:08,920
incrementing.

93
00:06:09,070 --> 00:06:13,520
So we will be sending the new data on to a console with each new iteration.

94
00:06:13,540 --> 00:06:13,810
Right.

95
00:06:14,380 --> 00:06:15,670
So this is an entire goal.

96
00:06:15,880 --> 00:06:21,480
Now, first, since we do not know whether it will be working as expected, what we are going to do

97
00:06:21,490 --> 00:06:28,360
is the reason why we do not know whether it will be working as expected is because we are utilizing

98
00:06:28,360 --> 00:06:29,320
both the method, right?

99
00:06:29,320 --> 00:06:35,590
So here you are utilizing the lower level API to send the data to a console, whereas here you are utilizing

100
00:06:35,590 --> 00:06:36,960
an higher level API, right?

101
00:06:36,980 --> 00:06:39,750
So they'll print it to send the leaders in.

102
00:06:39,760 --> 00:06:45,630
That is, we need to try our application such that it operates properly, right?

103
00:06:45,640 --> 00:06:51,280
So first, let it just build our application project and try to observe it that we are getting unexpected

104
00:06:51,280 --> 00:06:53,350
results if we do not get an expected result.

105
00:06:53,590 --> 00:06:58,730
We need to work around just to modify this any application project so that we get unexpected results,

106
00:06:58,730 --> 00:06:58,900
right?

107
00:06:58,930 --> 00:07:00,190
So once our bill is finished.

108
00:07:01,570 --> 00:07:07,090
We select our application project, right click Debug at launch on heart rate.

109
00:07:08,120 --> 00:07:11,150
So this will automatically start programming RPG.

110
00:07:12,410 --> 00:07:18,560
So once programming is successful, OK will be going to a vital serial terminal and then connecting

111
00:07:18,560 --> 00:07:22,100
it to the respective to rape scene, Mike is a discomfort.

112
00:07:22,280 --> 00:07:25,040
And we are operating at eight nine six zero zero block, right?

113
00:07:25,040 --> 00:07:27,170
So click OK and then click on resume.

114
00:07:27,170 --> 00:07:33,830
But right now here, the first thing that we are expecting is you walked and it sets us one, right?

115
00:07:34,370 --> 00:07:39,800
But here you could clearly see we are just getting you walked in it and in a straight say, if you count

116
00:07:39,800 --> 00:07:45,230
the number of light that we have received, the four, four, eight, nine, 10 and 11 byte we have

117
00:07:45,230 --> 00:07:45,590
received.

118
00:07:45,710 --> 00:07:46,220
So this is.

119
00:07:47,860 --> 00:07:53,110
I guess we could see here we are receiving a live invite and 11 is something that we specified, all

120
00:07:53,290 --> 00:07:53,510
right.

121
00:07:53,530 --> 00:07:56,260
So our application is not working as expected.

122
00:07:56,470 --> 00:08:04,180
So what we can do here is, as you said, the board right now let us forcefully specify an operation

123
00:08:04,180 --> 00:08:06,630
because this we want to see on a console, right?

124
00:08:06,640 --> 00:08:08,750
So here the mode of operation should be normal.

125
00:08:08,770 --> 00:08:12,130
So let me just go ahead and call this over here.

126
00:08:12,400 --> 00:08:16,500
So this will make sure that we work in a correct mode that is a normal mode.

127
00:08:16,690 --> 00:08:18,580
Now here we are sending the data.

128
00:08:18,730 --> 00:08:26,170
Now we'll make sure that we do not execute the next statement until we send all the reader who we can

129
00:08:26,170 --> 00:08:30,940
make sure that all the details correctly transmitted to a console or not.

130
00:08:31,180 --> 00:08:37,840
We will just call this function right, so we will be waiting till all the data is transmitted and then.

131
00:08:38,870 --> 00:08:42,920
As we complete the transmission, this will return zero and then will be coming out great.

132
00:08:43,580 --> 00:08:48,140
So this will be the first modification that we are doing, so we are forcefully setting up the correct

133
00:08:48,140 --> 00:08:54,290
mode that we want and we are waiting till all the data that we intend to send to a council is sent on

134
00:08:54,290 --> 00:08:55,040
board until right.

135
00:08:55,040 --> 00:09:01,430
So once this is sent now, we proceed and then will again build up our application project.

136
00:09:01,460 --> 00:09:01,700
Great.

137
00:09:01,700 --> 00:09:03,170
So let's see it now.

138
00:09:03,170 --> 00:09:04,560
It works as expected.

139
00:09:04,610 --> 00:09:04,880
Great.

140
00:09:05,750 --> 00:09:07,790
So one Typekit is finished.

141
00:09:07,790 --> 00:09:10,640
We'll just be selecting our debug session and click on.

142
00:09:12,690 --> 00:09:18,930
So let me just clear, Arkansas, all right, and then we will be clicking on resume, but right now

143
00:09:18,930 --> 00:09:25,640
you will see you are in it successful and the that we have been received so far is great.

144
00:09:25,860 --> 00:09:32,040
So this is how you will be streaming your application whenever you are working on different levels.
