Linux LITE QMUX  MBPL_SDK_R25_ENG3
Data Fields
QmiService Struct Reference

#include <QmiService.h>

Data Fields

struct QmiServicepNext
 
uint8_t serviceType
 
uint8_t clientId
 
struct QmuxTransportpTransport
 
uint16_t transactionId
 
pthread_mutex_t transactionIdLock
 
QmiTransaction transactionPool [QMI_TRANSACTION_POOL_SIZE]
 
pthread_mutex_t transactionPoolLock
 
QMI_INDICATION_CALLBACK pIndicationCallback
 
void * pIndicationCallbackContext
 

Detailed Description

This structure abstracts a QMI service. It is responsible issuing transaction IDs. It tracks QMI requests and responses using transaction objects from a pool. It invokes a user callback when QMI indications which match its client ID (or a broadcast ID) are received from the transport layer.

Parameters
pNext
  • A link so we can store this object in a linked list by the transport layer.
serviceType
  • QMI service type, CTL, NAS, etc.
clientId
  • QMI client ID
pTransport
  • Pointer to underlying QMUX transport object.
transactionId
  • QMI transaction ID. Upper limit 0xffff for regular QMI services, 0xff for CTL service.
transactionIdLock
  • Mutex to make transactionId access thread-safe.
transactionPool
  • Pool of transaction objects which may be assigned to QMI requests made by clients of this service.
transactionPoolLock
  • Mutex to make transactionPool access thread-safe
pIndicationCallback
  • User callback for QMI indications of this service.
pIndicationCallbackContext
  • User context for user callback.

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