コード例 #1
0
ファイル: main.c プロジェクト: IRNAS/MicroAPRS
// This is a callback we register with the protocol,
// so we can process each packet as they are decoded.
// Right now it just prints the packet to the serial port.
static void message_callback(struct AX25Msg *msg)
{
    if (SERIAL_PROTOCOL == PROTOCOL_SIMPLE_SERIAL) {
        ss_messageCallback(msg, &ser);
    }
    if (SERIAL_PROTOCOL == PROTOCOL_KISS) {
        // Not implemented yet
    }
}
コード例 #2
0
ファイル: main.c プロジェクト: Jemigo/MicroAPRS
 static void ax25_callback(struct AX25Msg *msg) {
     ss_messageCallback(msg);
 }