1
00:00:00,450 --> 00:00:02,970
Let's try to replicate an entire procedure.

2
00:00:03,030 --> 00:00:07,980
OK, whatever we have discussed, we already included any excited the AYP.

3
00:00:07,980 --> 00:00:15,420
So if you just look to design that we are considering we have added an GPI API, which is a better fit

4
00:00:15,510 --> 00:00:15,960
for us.

5
00:00:16,380 --> 00:00:20,510
And for that reason, we included Ex Dubai.

6
00:00:20,520 --> 00:00:27,030
We don't actually know from where you could find out the most recommended payload for a specific paper

7
00:00:27,030 --> 00:00:27,420
release.

8
00:00:27,420 --> 00:00:34,440
You just go to an EMRs fight and then there you could actually find out the most suitable driver for

9
00:00:34,440 --> 00:00:36,300
the IP that you have out here.

10
00:00:36,300 --> 00:00:37,530
We have a GPO.

11
00:00:37,860 --> 00:00:42,050
We just need to add an X in front of the driver that I'm mentioning and misses.

12
00:00:42,090 --> 00:00:43,420
And you are right.

13
00:00:44,190 --> 00:00:46,510
So first step is to declare to structure.

14
00:00:46,680 --> 00:00:52,440
Now, once you go inside the driver for a specific property, you'll be getting all the information

15
00:00:52,440 --> 00:00:53,390
related to right.

16
00:00:53,940 --> 00:00:54,360
So.

17
00:00:55,400 --> 00:00:59,680
You could clearly see that you have a fixed structure or here.

18
00:00:59,830 --> 00:01:00,190
OK.

19
00:01:00,610 --> 00:01:07,670
And then you also have a structure which will hold the data related to that image.

20
00:01:08,170 --> 00:01:10,540
These are the two structure that we already discussed.

21
00:01:11,260 --> 00:01:12,400
So we need to create.

22
00:01:13,660 --> 00:01:16,180
This, too, we need to add this to structure.

23
00:01:16,220 --> 00:01:20,730
OK, that is the first step, so it will go ahead in our main course.

24
00:01:20,830 --> 00:01:21,150
OK.

25
00:01:21,700 --> 00:01:27,280
And then we'll just be naming this as GPI right here will be declaring it as a pointer.

26
00:01:27,610 --> 00:01:27,940
OK.

27
00:01:28,120 --> 00:01:34,840
But when we consider the config structure, we will be declaring it as a pointer because the look up

28
00:01:34,840 --> 00:01:40,760
config function is celebrating the pointer and the initialize function also required a pointer.

29
00:01:40,780 --> 00:01:45,460
OK, so that basically is our entire process will be declaring it as a pointer.

30
00:01:45,460 --> 00:01:52,290
So I stick and then we'll just be naming this GPO configuration.

31
00:01:52,720 --> 00:01:56,440
So this is these are the two structure that is the first thing that we do.

32
00:01:56,710 --> 00:02:03,610
Then we will be declaring one function that will be used to initialize up right to.

33
00:02:04,580 --> 00:02:07,130
Let us see the game with a tribal fight.

34
00:02:07,490 --> 00:02:12,350
So you just need to look for the key, look up confident and you would clearly see we have a look up

35
00:02:12,350 --> 00:02:13,670
config over here, right?

36
00:02:13,940 --> 00:02:16,190
So it returns config pointer.

37
00:02:16,310 --> 00:02:16,670
OK.

38
00:02:17,670 --> 00:02:21,990
And it just required devices that we need to specify.

39
00:02:22,200 --> 00:02:23,890
So we'll just copy this.

40
00:02:23,910 --> 00:02:24,750
Well, go ahead.

41
00:02:25,100 --> 00:02:30,010
Now we just need to connect this to do you think, right?

42
00:02:30,030 --> 00:02:35,580
This is the first step and we'll be adding, look up one thing right now here.

43
00:02:35,850 --> 00:02:38,970
We need to pass a device I.D. of TPA, right?

44
00:02:38,970 --> 00:02:40,590
So we just need to explore.

45
00:02:41,040 --> 00:02:45,240
We go to edge and we just need to find out GPI.

46
00:02:45,480 --> 00:02:45,800
Right?

47
00:02:46,740 --> 00:02:49,490
Now you could clearly see you get all the details in the.

48
00:02:50,070 --> 00:02:57,050
So we just need to copy the device I.D. OK, and we need to I.D. This is the first to right now.

49
00:02:57,060 --> 00:03:02,340
This will give us the config structure, and once we have a config structure, later, we could again

50
00:03:02,340 --> 00:03:02,910
go to.

51
00:03:03,920 --> 00:03:08,150
The head of fine and you could see of Jean Initialise function, right, which again required three

52
00:03:08,150 --> 00:03:08,630
argument.

53
00:03:09,940 --> 00:03:16,960
The pointer to the instance structure pointed to one big structure, and then the state will just be

54
00:03:16,960 --> 00:03:23,170
copying this, and this basically either written an entire new 30 year retreat and sent so we'll go

55
00:03:23,170 --> 00:03:23,550
ahead.

56
00:03:24,250 --> 00:03:31,840
We will be declaring one variable which will be holding the value that has been written by of initially.

57
00:03:31,880 --> 00:03:34,150
So it will just be pasting it over here.

58
00:03:34,580 --> 00:03:37,030
We hear declared and such.

59
00:03:37,140 --> 00:03:42,430
So this is not a pointer to who just be adding an embassy and the GPO.

60
00:03:43,000 --> 00:03:48,670
OK, but config structure itself is a pointer, so we will just be adding GPI config.

61
00:03:48,970 --> 00:03:54,670
This is the second step and two axis and address the base address or in effect to address will just

62
00:03:54,670 --> 00:03:57,640
be utilizing again GPIO config.

63
00:03:57,710 --> 00:04:01,460
OK, and then this operator and then we have visitors.

64
00:04:01,840 --> 00:04:06,310
This is the second step and this retains the value that should be separate.

65
00:04:06,520 --> 00:04:09,580
So we will just be updating the value of status.

66
00:04:10,450 --> 00:04:12,190
So this is the second step.

67
00:04:12,620 --> 00:04:18,780
OK, so once we complete our second step, the third step in just to compare, we will just down the

68
00:04:18,800 --> 00:04:22,500
street is equal to existing success rate.

69
00:04:22,990 --> 00:04:24,250
This is pretty much standard.

70
00:04:24,250 --> 00:04:28,600
We know if you just explore what is the standard that we have for an existing success.

71
00:04:28,930 --> 00:04:31,540
So it is right, as we discussed.

72
00:04:31,540 --> 00:04:38,020
So if X status is equal to access to success, we'll just be utilizing a reporting mechanism.

73
00:04:38,110 --> 00:04:42,040
OK, Amy debut of brain function brain death functional is helping to function.

74
00:04:42,640 --> 00:04:48,210
OK, and here we just need to communicate the strength so the painter can bring.

75
00:04:48,220 --> 00:04:49,420
The book could be.

76
00:04:50,870 --> 00:04:53,900
Equally efficient and imperfect will result in death.

77
00:04:54,530 --> 00:04:57,950
Here we'll just be adding a message device in it.

78
00:04:58,760 --> 00:05:02,200
Sexist comments.

79
00:05:02,300 --> 00:05:05,600
And even just adding to think again.

80
00:05:06,350 --> 00:05:09,620
Here we will be mentioning device in it.

81
00:05:10,670 --> 00:05:10,990
Right?

82
00:05:12,410 --> 00:05:21,050
So this will be a step to initialize the only difference that you'll be finding is you may be having

83
00:05:21,050 --> 00:05:27,680
a different detail in this structure, but this format will remain so it will be independent of the

84
00:05:27,680 --> 00:05:29,390
person that you are utilizing.

85
00:05:29,660 --> 00:05:32,000
So these are the cities of step that you need to follow.

86
00:05:32,300 --> 00:05:34,580
You start with the instant structure.

87
00:05:34,610 --> 00:05:38,090
The convict structure declared convict structure as a pointer.

88
00:05:38,600 --> 00:05:44,090
OK, you start with the function, OK, where we will be writing all the logic to initialize out the

89
00:05:44,140 --> 00:05:44,480
infinite.

90
00:05:44,960 --> 00:05:50,930
We declared one variable, which will be of integer type, OK, and that will be storing the value that

91
00:05:50,930 --> 00:05:52,280
has been written by CFD.

92
00:05:52,280 --> 00:05:59,870
Initialize this Typekit first accessing the data for GPI of conflict or conflict structure, and that

93
00:05:59,870 --> 00:06:03,170
could be followed by going into look of conflict function.

94
00:06:03,170 --> 00:06:06,770
Just go to look for lookup config keyword.

95
00:06:07,010 --> 00:06:08,060
OK, and copy this.

96
00:06:08,060 --> 00:06:13,570
This usually required device so that could be easily found out from parameter.

97
00:06:13,580 --> 00:06:14,140
Don't choice.

98
00:06:14,690 --> 00:06:19,730
You just need to specify that device ID and then this will return the config structure, right?

99
00:06:19,850 --> 00:06:24,740
Once you have a conflict structure, we will just be looking for CMG initialize keyword.

100
00:06:25,100 --> 00:06:28,330
OK, and it requires three argument, two pointers.

101
00:06:28,400 --> 00:06:31,070
First one is a pointer to an instance of your second.

102
00:06:31,070 --> 00:06:36,680
One is a pointer to conflict structure and third one is in effect to basically restrict you just be

103
00:06:36,680 --> 00:06:39,790
utilizing an embarrassing instance structure.

104
00:06:40,970 --> 00:06:46,910
Since config structure is already declared as a pointer, so we just need to add a conflict structure

105
00:06:47,240 --> 00:06:51,440
and the last one is conflict structure itself will be providing a base address for us.

106
00:06:52,310 --> 00:06:59,210
Now, if everything is successful right, it will return zero and that will be stored inside the studio,

107
00:06:59,300 --> 00:06:59,520
right?

108
00:06:59,540 --> 00:07:01,100
So we just need to compare this.

109
00:07:01,310 --> 00:07:03,250
This is equal to zero or existing.

110
00:07:04,010 --> 00:07:07,220
If that is the case, we will just be displaying that device.

111
00:07:07,220 --> 00:07:08,870
Initialization is successful.

112
00:07:08,870 --> 00:07:11,050
Is device initialization.

113
00:07:11,060 --> 00:07:17,020
See, right now, once we complete the original, this entire thing, we will just be going to mean

114
00:07:17,030 --> 00:07:20,320
function, right, which will be executing as we run.

115
00:07:20,330 --> 00:07:26,540
Our application will be predominantly having an first function over here as a platform that will be

116
00:07:26,540 --> 00:07:28,550
used to initialize you.

117
00:07:28,550 --> 00:07:28,910
What?

118
00:07:29,090 --> 00:07:29,540
OK.

119
00:07:29,990 --> 00:07:32,660
The next thing that will be adding is our function.

120
00:07:32,990 --> 00:07:34,790
Now this is used to initialize.

121
00:07:35,090 --> 00:07:37,540
I also would just be naming this as in it.

122
00:07:37,970 --> 00:07:39,800
And after we complete.

123
00:07:41,070 --> 00:07:48,340
They initially additional thank you what would just be added GPI would wait and let you have your normal

124
00:07:48,390 --> 00:07:54,600
logic will be mentioning your algorithm considering the API that you have for approving it.

125
00:07:55,020 --> 00:07:57,340
And then finally, do you date?

126
00:07:57,570 --> 00:08:04,650
So this is how we will be utilizing the two structures lookup config and see if you initialize function

127
00:08:04,650 --> 00:08:07,070
to initialize any of the preset.
