Linux LITE QMUX  MBPL_SDK_R25_ENG3
Data Fields
QmuxTransport Struct Reference

#include <QmuxTransport.h>

Data Fields

int interfaceType
 
void * pDataLayer
 
int deviceFd
 
int shutdownFd
 
bool devRemoved
 
struct QmiServiceqmiServiceList
 
pthread_mutex_t writeLock
 
pthread_mutex_t qmiServiceListLock
 
pthread_t readThread
 
QMUX_TRANSPORT_ERR_CALLBACK pErrCallback
 
void * pErrCallbackContext
 

Detailed Description

This structure abstracts a QMUX transport layer. It is responsible for applying QMUX headers to QMI packets from QMI services and forwarding them to the device. It is responsible for receiving QMUX packets from the device. On the basis of QMUX headers, it distributes the SDUs (QMI packets) to the appropriate QMI service. It maintains a list of connected QMI service objects.

Parameters
interfaceType
  • Using direct, MBIM, or router for data layer.
pDataLayer
  • Pointer to instantiated data layer.
deviceFd
  • File descriptor of device.
shutdownFd
  • Event descriptor. Used to signal read thread to terminate.
devRemoved
  • Flag indicating device has been removed or not.
qmiServiceList
  • List of connected QMI service objects.
writeLock
  • Provides mutual exclusion for write operations.
qmiServiceListLock
  • Provides thread safety for the service list.
readThread
  • Thread responsible for reading from device.
pErrCallback
  • Callback function for transport error events.
pErrCallbackContext
  • User context for MbimTransport error callback

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