(Page 4 of 4 in this chapter)
9.3 Receiving FSK Data
- Call adiStartReceivingFSK to enable an application to receive FSK data. While running, the FSK receiver is in one of the following four states:
- Receiving Channel Seizure
- Receiving Mark
- Receiving Data
- A complete packet of FSK data consists of either of the following sequences:
- Receive Mark, Receive Data
- During the receive operation, a number of errors may occur. These errors will cause the function to terminate prematurely. If errors occur, the ADIEVN_FSK_RECEIVE_DONE event is sent with one of the following reasons:
- ADI_REASON_BAD_STOP_BIT - Stopped because of data framing error;
the stop bit at the end of data was a space, not a mark.
9.3.1 Parameters for Receiving FSK Data
- adiStartReceivingFSK requires four parameters defined in the ADI_FSKRECEIVE_PARMS structure:
- minmark - Minimum required initial mark and seizure time, in milliseconds.
- mindrop - Minimum dropout to silence before a packet is considered
terminated, in milliseconds.
- baudrate - Transmission baud rate.
9.3.2 Terminating FSK Data Reception
- The receive operation may be stopped by calling adiStopReceivingFSK. The event value field will contain CTA_REASON_STOPPED. The size of the partial buffer received is stored in the size field of the event structure.
(Page 4 of 4 in this chapter)
tech_support@nmss.com
Copyright © 1997, Natural MicroSystems, Inc. All rights
reserved.