AN2262 Motorola / Freescale Semiconductor, AN2262 Datasheet - Page 87

no-image

AN2262

Manufacturer Part Number
AN2262
Description
Wireless HC08 Modem
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
void RF_RxStop(void)
{
}
///////////////////////////////////////////
// SPI RX interrupt, we got data from ROMEO
#pragma TRAP_PROC
void SpiRx_Int(void)
{
}
///////////////////////////////////////////////////////////////
// user “interrupt acknowledges”
// continue transmission with given char
// called from RF_TxChar_Int() to continue transmission
#pragma INLINE
void RF_TxChar(BYTE tx)
{
}
// finish transmission, no more data
// called from RF_TxChar_Int() to finish transmission
#pragma INLINE
void RF_TxFinish(void)
{
}
// get received byte
// called from RF_RxChar_Int()
#pragma INLINE
BYTE RF_RxChar(void)
{
}
MOTOROLA
// shut down SPI (slave, no ints, cpol=0, cpha=1, disabled)
SPCR = 0x8;
// and signal receiver idle state
rfRxActive = 0;
// serve the interrupt
SPSCR;
// call back to user code
RF_RxChar_Int(SPDR);
LedFn2On();
IfBtnJp1BuzzerOff();
txChar = tx;
txBits = 8;
// do nothing is enough (leaves txBits == 0)
return rxChar;
// store the byte
// this also flags that valid byte was stored
Wireless HC08 Modem
Source Code
AN2262/D
87

Related parts for AN2262