Exemple #1
0
void initSystem(void) {

    OSCCON = 0x70;      //16 MHz Clock

    __delay_us(1);

    initPorts();
    rs232_init();
    config_init();
    pocsagPhy_init();
    interrupts_init();

}
Exemple #2
0
void pocsagPhy_test(UINT8 tstType) {
    if (pocsagPhy_state != IDLE)
        return;

    if (pocsagPhy_init()) {
        rs232_putString("Init error");
        return;
    }
    pocsagPhy_busy = 1;

    pocsagPhy_state = TEST;
    testType = tstType;
}
Exemple #3
0
void pocsagPhy_sendMsg(UINT16 numBytes) {

    if (pocsagPhy_state != IDLE)
        return;

    if (pocsagPhy_init()) {
        rs232_putString("Init error");
        return;
    }

    pocsagPhy_busy = 1;
    numBytesTX = numBytes;

    pocsagPhy_state = SYNCH_TX;
    contador = PREAMBLE_LENGTH;

}