- Code: Select all
std::ofstream FIFO;
FIFO.open("/dev/xillybus_write_32");
uint32_t output32 = 0; //Linux unsigned 32bit number
while(1){
//output32 = 4294967295; //decimal equivalent of 32bit binary 1's. This is the format that we would like to put into the FIFO //First attempt
//output32 = 0b11111111111111111111111111111111; //32bit binary 1's. (Same as above statement) //Second Attempt
//FIFO << output32; //push output32 to FIFO
FIFO << 0b11111111111111111111111111111111; //pushing 32bit 1's straight into FIFO// Third Attempt
}
if (FIFO.is_open()){
FIFO.close();
}
Thank you very much for your assistance.