That sounds like a Beaglebone Black. It has "programmable realtime units" built in, which are basically microcontrollers. They are well-integrated with the host computer; there is a mailbox passing messages between the host machine and the PRUs. No need to invent a serial protocol for communicating -- just put your c struct in there.