Altera_Forum
Honored Contributor
14 years agousing altera_up_avalon_rs232.h to set up rs232 communication
Hello.
I've found this header file and I have been trying to use it to communicate back and forth between a PC and my development board, Altera DE1. To use functions that read and write characters, I need two variables: the character that I am reading/sending and something called alt_up_rs232_dev which is a 'RS232 device structure'. Here is the prototype of the function that sends a character: int alt_up_rs232_write_data(alt_up_rs232_dev *rs232, alt_u8 data); Could you be so kind to tell me what a 'RS232 device structure' actually is? What is it that the functions expect? Thank you.