You are implementing a class that represents a UART hardware handle.
Each instance controls one physical UART peripheral, so it must not be copied.
Copying this object would incorrectly imply:
To prevent this, copying must be explicitly disabled.
You must implement:
sendByte() function that prints the transmitted byteYour class must be non-copyable.
Demonstration requirement:
Inside main(), an attempted copy is included:
// UARTHardware copy = uart; // This line should NOT compile after your implementation This line is intentionally commented out.
If the user un-comments it, the code must fail to compile, proving copying is forbidden.
Program Flow:
Example Input:
9600 65 Example Output:
TX: 65
Constraints:
0–255
Input
9600 65
Expected Output
TX: 65