So now what we tried to do is we'll cover how we use and function that can be used to receive the data
from a new right.
So if you just explore.
You are obvious.
OK, so you do have an EPA that views to receive the data, right?
So if you just explore this, OK, so this required an instance structure, OK, then the second argument
is the buffer where we want to store the data that we received in the buffer.
Right.
And the last one is the number of fight we want to see.
So these are the three arguments that we have.
And then this returns the number of victories you write.
And this is very helpful because here will be specifying the number of bytes that we are planning to
resume.
OK, and this will return the number of bytes been deceived.
So let us assume we with an eleven.
So as soon as this count changes such as let's assume that we received a single by then, we must document
that now we want to receive the ten bucks, right?
So this is how we gonna implement the logic.
So if you go to an OK, here, what we are doing is we are utilizing a same function and data that we
have in the data buffer that we are sending.
OK, and we have a total of 11 byte of the time.
We already know that we are sending Halloway.
OK, we are waiting for a completion of data transmission now to receive that data back in n receive.
OK.
We need to perform look back mode, right?
So here, if you just perform a normal operation, we won't be able to receive anything.
But if we look back at the same data that you have transmitted, we could fill up our before and then
we could try to utilize the received function, right?
So that will basically we return the data that we have an issue.
So first thing that we want to do is to change our you work operating right.
And to do that, we do have our specific API.
So we have an unbiased set operating mode.
So this required an agreement as an instance structure.
And second, when we have a set operation, we're great.
So we have four different operation which are supported by what we have normal operation mode.
Get where we will be sending and receiving a data.
Then we have a local loop, remote lubeck and automatically.
So we want to perform a local loop.
So whatever data that we are transmitting, we want to issue back to CMT, right?
And to do that, you basically have certain macros, right?
Certain values that we need to as an argument to this operation.
Right.
If you just go up, you will be finding the various operating mode that we have.
So they will all really be defined in a headed wide.
So if you just explore.
So here you would see the different operating modes are declining to let just click a tree and then
you get here, you have a definition for an operational rate of our normal rule.
We need to pass zero zero four and what we do more, we need to pass one or a local lubeck zero, two
and four and more lubeck.
We need to pad Sidoti.
So we just copy this look.
Look back, OK, we'll go back to our call.
And then when we say time order, which is nine six zero zero, we'll just be configuring or operating
mode to be, look, look back.
Now this will allow us to receive the data back in an hour before whatever we are transmitting, right?
And then we are sending this data that is headed away.
OK, and we are waiting for a completion of the transmission.
The once data transmission is completed, OK?
We are basically.
Adding the message has come to sending that right, remember, now we are working and then.
A local to back, all of the data that we are sending will be automatically stored in and received FIFA
right, and our agenda is to take the details of our ISA people into a.
A real nature to do that, we have declared energy a game of tape and consisting of an 11 element.
So that is our agenda.
So here we will be touring 11 character.
It is hallowed right now if you just go ahead.
We are waiting for a bite binary seem to be able to eliminate.
So we know that with each bite we received, OK, with each bite we dig out from a received people are
by to see will increment right because this will return the number of bite that we see, right?
So even though we initialize this two to zero.
So the first going forward will be zero.
But then as soon as we receive the first bite, this will be implemented by one right and automatically
bite received will be implemented by one right.
And as we do this, we now need to receive only 10 bite.
So we'll just be subtracting the bite received from our man maximum bite that we are expecting.
That is great.
And the data that can be stored in this area.
Right.
So each new element will be stored into the specific location of data with each new bite.
We have our soon will be incrementing and then we will be touring the new element in the story.
So once we complete this process, what we are doing is we are changing our operation back to the normal
right.
So once we do this now, we could just send the data that we have in.
Then before that, we declare the various to the data that we receive to send the data to offensively,
just to verify whether the redirect spending is matching to the data that we are receiving.
So what we are doing, we are sending the first thing is setting up the border, OK, the respective
border that you want to set, then changing the operating mode.
So here we want to perform a loop back, OK?
And for that, we have this macro, which we have added over here.
Then we are sending the data, OK.
We are waiting for a completion of our transmission.
Then we are again giving an indication to any user that we have completed sending a data.
OK, and then we are waiting for the 11 bytes to be received from our people.
Right?
So the function that will help, that will be helping us to receive the reader from the you.
What is you?
What is this?
Right?
Yeah.
We just need to specify a buffer where we want to do the research read.
And then this count should be dynamically updated as we receive the new details, right?
So once we complete the respective account of the day that we want to receive from any what, we will
be changing our operating mode back to a normal so that the leader we received, the the leader that
we have in Buffalo could be sent to our council for verification and for that we are utilizing before
look good.
We already know that we have 11 bytes of data inside of buffer.
OK, so we are sending what we are printing the data that we have in ready, right?
So if you just perform an execution of this code, right, we already programmer FPGA let it just go
ahead and try to perform an execution of this.
So and to perform an execution of this goal, we have a computer sending data.
OK.
This is the message that we have.
And then the Hallowe'en.
So this is the same data that we are sending over here, right?
So we are sending the reader that we have in an array data, which is lower and then we have the same
data in our data receiver.
Right.
This is what we are printing more here.
So this is how we could utilize the S.A.T. and we also understand.
How we utilize the loopback more, OK, to send back the same data that we have to receive back seem
data that you have transferring data and you are right.
And this could be very helpful if we just want to develop the self checking function.
OK, so we could randomly generate some data that we could sing and then we'll see you back the data
and we'll just be performing the competition.
So if data matches, whatever the data that you have seen is basically is what we are receiving in a
loop.
So this could be used to verify whether hardware is working functionally correct or.
Right.
So you could develop a function fed.
You change the operating mood, then you generate some random data, send it to, yeah, you work and
try to receive the data.
So if the data is matches to the data that you have sent, you would see that hardware is working perfectly
fine, right?