Linux LITE QMUX  MBPL_SDK_R25_ENG3
Data Fields
QmiSyncObject Struct Reference

#include <QmiSyncObject.h>

Data Fields

pthread_mutex_t mutex
 
pthread_cond_t condition
 
uint8_t buffer [MAX_QMI_PACKET_SIZE]
 
uint16_t bufferSize
 

Detailed Description

This structure is a wrapper around a mutex and condition object and a buffer. It is a convenience object which may be used to create synchronous QMI APIs.

Parameters
mutex
  • For thread safety.
condition
  • Triggered on completion.
buffer
  • QMI request packet is written to this buffer. On request completion, contains the QMI response packet.
bufferSize
  • Set to size in bytes of QMI request packet. On request completion, set to size of QMI response packet.
Note
The buffer is intended for QMI packet only i.e. QMI header and QMI payload. This buffer becomes the SDU of a QMUX packet.

Copyright (c) 2011-2020 Sierra Wireless, Inc. All rights reserved