|
wavelength 1.0.0
|
A Conexant USB modem the driver attached to. More...
#include <cxtmodem.h>
Public Types | |
| enum | LoadMode { kLoadModeNormal = 0 , kLoadModeAuto = 1 , kLoadModeTest = 2 } |
| Load modes the lmode argument selects. More... | |
| enum | LineBit { kLineActive = 0x01 , kLineConnected = 0x02 , kLineReserved = 0x04 } |
| Line bits of the control packet. More... | |
Static Public Member Functions | |
| static int | Probe (int deviceId) |
| Report whether the driver takes a device. | |
| static int | Connect (int deviceId) |
| Attach to a device. | |
| static int | Disconnect (int deviceId) |
| Detach from a removed device. | |
Static Public Attributes | |
| static constexpr unsigned char | kRegisterWriteCommand = 0x40 |
| Value written in each RegisterWrite. | |
| static LoadMode | sLoadMode |
| Load mode from the module arguments. | |
| static int | sDeviceFound |
| Whether a modem is attached, or for a normal load, whether to stay loaded. | |
| static constexpr int | kDialStringSize = 1024 |
| Size of sDialString. | |
| static char | sDialString [kDialStringSize] |
| Value of the dial module argument. | |
A Conexant USB modem the driver attached to.
The modem library drives it through the record in mModem. The device exposes UART-style registers written through the register endpoint, takes bytes to send on the bulk out endpoint, and reports received bytes and the modem status on the bulk in endpoint.
The module was built without RTTI. The name is inferred from the module's routines.
| enum CxtModem::LoadMode |
| enum CxtModem::LineBit |
|
static |
Report whether the driver takes a device.
Records that a modem is attached.
| deviceId | Device identifier. |
|
static |
Attach to a device.
Open its pipes, select its configuration, read its names, register the modem, and start the firmware download thread.
| deviceId | Device identifier. |
|
static |
Detach from a removed device.
An active modem only reports the removal and is released by Stop().
| deviceId | Device identifier. |
|
staticconstexpr |
Value written in each RegisterWrite.
|
static |
Load mode from the module arguments.
|
static |
Whether a modem is attached, or for a normal load, whether to stay loaded.
|
staticconstexpr |
Size of sDialString.
|
static |
Value of the dial module argument.