forked from mirrors/lpac
Add an APDU backend for MBIM devices. The MBIM device path can be passed via the MBIM_DEVICE environment variable. We'll default to /dev/cdc-wdm0. By default we will not operate through the mbim-proxy. Set MBIM_USE_PROXY to 1 to enable this. Like QMI devices, use UIM_PORT to select the active SIM slot. Tested on Semtech EM9191 and EM7590, and Quectel RM520N-GL. resolve #94 Signed-off-by: Frans Klaver <frans.klaver@vislink.com> Co-authored-by: Frans Klaver <frans.klaver@vislink.com>
32 lines
621 B
C
32 lines
621 B
C
// SPDX-License-Identifier: MIT
|
|
/*
|
|
* Copyright (c) 2024, Frans Klaver <frans.klaver@vislink.com>
|
|
*/
|
|
|
|
#include <libmbim-glib.h>
|
|
|
|
MbimDevice *
|
|
mbim_device_new_from_path(
|
|
GFile *file,
|
|
GMainContext *context,
|
|
GError **error);
|
|
|
|
gboolean
|
|
mbim_device_open_sync(
|
|
MbimDevice *device,
|
|
MbimDeviceOpenFlags open_flags,
|
|
GMainContext *context,
|
|
GError **error);
|
|
|
|
gboolean
|
|
mbim_device_close_sync(
|
|
MbimDevice *device,
|
|
GMainContext *context,
|
|
GError **error);
|
|
|
|
MbimMessage *
|
|
mbim_device_command_sync(
|
|
MbimDevice *device,
|
|
GMainContext *context,
|
|
MbimMessage *request,
|
|
GError **error);
|