Skip to content
Snippets Groups Projects
Commit ecbcfd10 authored by Vipin Thomas's avatar Vipin Thomas
Browse files

Update pixel.cpp

parent 65686e81
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ int addNum=0;
long long convert(int n);
int convertBinInt(long long n);
void decrypt(int data);
void toAscii(char *c);
// void toAscii(char *c);
void pixel(char *key,
......@@ -38,7 +38,8 @@ void pixel(char *key,
#pragma HLS INTERFACE axis port=dout
pkt_t pkt=din.read();
toAscii(key);
int n=(int)*key;
*key=(char)n;
switch(selector)
{
case 0:
......@@ -132,8 +133,8 @@ int dec = 0, i = 7, b=0,rem=0;
return dec;
}
void toAscii(char *c) {
int n=(int)*c;
c=*(char)n;
}
// void toAscii(char *c) {
// int n=(int)*c;
// c=*(char)n;
// }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment