The interface for parsing and sending packets is in ge-rs232.c
and ge-rs232.h
. This file doesn't deal with things like opening the serial port or setting the baud rate. You must feed it bytes as you receive them on the wire and provide a callback function for sending data.