mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
cardem: Add SIMTRACE_MSGT_BD_CEMU_CONFIG
The new SIMTRACE_MSGT_BD_CEMU_CONFIG command can be used to set/change a bitmask of optional features that can be enabled in the simtrace by the host software. This is useful for enabling features in the firmware which are not supported by older host utilities. The firmware will return the actually set/configured features in response. The feature bitmask is not yet used anywhere; it will be by subequent patches. Change-Id: I7cdd3f9171dbed45de0089defe29d2b59044bd84
This commit is contained in:
@@ -62,6 +62,8 @@ enum simtrace_msg_type_cardem {
|
||||
SIMTRACE_MSGT_DO_CEMU_RX_DATA,
|
||||
/* Indicate PTS request from phone */
|
||||
SIMTRACE_MSGT_DO_CEMU_PTS,
|
||||
/* Set configurable parameters */
|
||||
SIMTRACE_MSGT_BD_CEMU_CONFIG,
|
||||
};
|
||||
|
||||
/* SIMTRACE_MSGC_MODEM */
|
||||
@@ -254,6 +256,15 @@ struct cardemu_usb_msg_error {
|
||||
uint8_t msg[0];
|
||||
} __attribute__ ((packed));
|
||||
|
||||
/* enable/disable the generation of DO_STATUS on IRQ endpoint */
|
||||
#define CEMU_FEAT_F_STATUS_IRQ 0x00000001
|
||||
|
||||
/* SIMTRACE_MSGT_BD_CEMU_CONFIG */
|
||||
struct cardemu_usb_msg_config {
|
||||
/* bit-mask of CEMU_FEAT_F flags */
|
||||
uint32_t features;
|
||||
} __attribute__ ((packed));
|
||||
|
||||
/***********************************************************************
|
||||
* MODEM CONTROL
|
||||
***********************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user