AN2262 Motorola / Freescale Semiconductor, AN2262 Datasheet - Page 90

no-image

AN2262

Manufacturer Part Number
AN2262
Description
Wireless HC08 Modem
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
AN2262/D
#endif
#ifdef SCI_XONXOFF_CONTROL
#endif
}
// copy data to tx buffer, do not call in interrupts (using global i)
BOOL SCI_TxBuff(BYTE* buff, BYTE len)
{
}
// send data prepared already in buffer, can be called from interrupts
// no checking if valid data are passed !!
BOOL SCI_TxInPlaceSend(BYTE* buff, BYTE len)
{
}
#pragma TRAP_PROC
void SciTx_Int(void)
{
90
sciTxPriority = 0;
// free space in queue
DisTxInt();
i = txRP - txWP;
if(txRP <= txWP)
// continue with previous chars
EnaTxInt();
// space to copy data ? (not that there must always be one BYTE left free)
if(len >= i)
for(; len; len--)
{
}
// start the tx if previously stopped
EnaTxInt();
return 1;
// free space in queue
DisTxInt();
EnaTxInt();
return 1;
// serve interrupt, two possible sources here: SCTE, TC
_scs1 = SCS1;
i += txSize;
return 0;
txBuff[txWP++] = *buff++;
if(txWP == txSize)
txRP = (int)buff - (int)txBuff;
txWP = txRP + len;
txWP = 0;
Wireless HC08 Modem
MOTOROLA

Related parts for AN2262