SM API
|
VITA 49 interface. More...
Go to the source code of this file.
Functions | |
SM_API SmStatus | smSetVrtStreamID (int device, uint32_t sid) |
SM_API SmStatus | smGetVrtContextPktSize (int device, uint32_t *wordCount) |
SM_API SmStatus | smGetVrtContextPkt (int device, uint32_t *words, uint32_t *wordCount) |
SM_API SmStatus | smSetVrtPacketSize (int device, uint16_t samplesPerPkt) |
SM_API SmStatus | smGetVrtPacketSize (int device, uint16_t *samplesPerPkt, uint32_t *wordCount) |
SM_API SmStatus | smGetVrtPackets (int device, uint32_t *words, uint32_t *wordCount, uint32_t packetCount, SmBool purgeBeforeAcquire) |
VITA 49 interface.
These functions are used to stream I/Q data in the VRT data format.
SM_API SmStatus smSetVrtStreamID | ( | int | device, |
uint32_t | sid | ||
) |
Set the stream identifier, which is used to identify each VRT packet with the device.
[in] | device | Device handle. |
[in] | sid | New stream ID. |
SM_API SmStatus smGetVrtContextPktSize | ( | int | device, |
uint32_t * | wordCount | ||
) |
Retrieve the number of words in a VRT context packet. Use this to allocate an appropriately sized buffer for smGetVrtContextPkt.
[in] | device | Device handle. |
[out] | wordCount | Returns the number of words in a VRT context packet. |
SM_API SmStatus smGetVrtContextPkt | ( | int | device, |
uint32_t * | words, | ||
uint32_t * | wordCount | ||
) |
Retrieve one VRT context packet.
[in] | device | Device handle. |
[out] | words | User allocated buffer. Should be length wordCount number of words long, where wordCount was returned from smGetVrtContextPktSize. |
[out] | wordCount | Number of words written to the words buffer. |
SM_API SmStatus smSetVrtPacketSize | ( | int | device, |
uint16_t | samplesPerPkt | ||
) |
This function specifies the number of I/Q samples in each VRT data packet.
[in] | device | Device handle. |
[in] | samplesPerPkt | The number of I/Q samples. |
SM_API SmStatus smGetVrtPacketSize | ( | int | device, |
uint16_t * | samplesPerPkt, | ||
uint32_t * | wordCount | ||
) |
Retrieve the number of words in a VRT data packet. Use this and a user-specified packet count to allocate an appropriately sized buffer for smGetVrtPackets.
[in] | device | Device handle. |
[out] | samplesPerPkt | Returns the number of I/Q samples in a VRT data packet. |
[out] | wordCount | Returns the number of words in a VRT data packet. |
SM_API SmStatus smGetVrtPackets | ( | int | device, |
uint32_t * | words, | ||
uint32_t * | wordCount, | ||
uint32_t | packetCount, | ||
SmBool | purgeBeforeAcquire | ||
) |
Retrieve one block of one or more VRT data packets. This function blocks until the data requested is available.
[in] | device | Device handle. |
[out] | words | Pointer to user allocated buffer. Returns the VRT packets. Must be as large as packetCount * packetSize words. |
[out] | wordCount | The number of words written to the words buffer. |
[in] | packetCount | The number of VRT data packets to retrive. |
[in] | purgeBeforeAcquire | When set to smTrue, any buffered I/Q data in the API is purged before beginning the I/Q block acquisition. See the section on Streaming I/Q Data for more detailed information. |