class RBusDevComm : public RBusLogicalChannel |
The externally visible interface through which the clients can access serial devices. It also represents a user side handle to the serial device driver.
Public Member Functions | |
---|---|
void | Break(TRequestStatus &, TInt) |
void | BreakCancel() |
void | Caps(TDes8 &) |
void | Config(TDes8 &) |
TUint | MinTurnaroundTime() |
void | NotifyReceiveDataAvailable(TRequestStatus &) |
void | NotifyReceiveDataAvailableCancel() |
void | NotifySignalChange(TRequestStatus &, TUint &, TUint) |
void | NotifySignalChangeCancel() |
TInt | Open(TInt) |
TInt | QueryReceiveBuffer() |
void | Read(TRequestStatus &, TDes8 &) |
void | Read(TRequestStatus &, TDes8 &, TInt) |
void | ReadCancel() |
void | ReadOneOrMore(TRequestStatus &, TDes8 &) |
TInt | ReceiveBufferLength() |
void | ResetBuffers() |
TInt | SetConfig(const TDesC8 &) |
TInt | SetMinTurnaroundTime(TUint) |
TInt | SetReceiveBufferLength(TInt) |
void | SetSignals(TUint, TUint) |
TUint | Signals() |
TVersion | VersionRequired() |
void | Write(TRequestStatus &, const TDesC8 &) |
void | Write(TRequestStatus &, const TDesC8 &, TInt) |
void | WriteCancel() |
Public Member Enumerations | |
---|---|
enum | TControl { EControlConfig, EControlSetConfig, EControlCaps, EControlSignals, EControlSetSignals, EControlQueryReceiveBuffer, EControlResetBuffers, EControlReceiveBufferLength, EControlSetReceiveBufferLength, EControlMinTurnaroundTime, EControlSetMinTurnaroundTime } |
enum | TRequest { ERequestRead = 0x0, ERequestReadCancel = 0x1, ERequestWrite = 0x1, ERequestWriteCancel = 0x2, ERequestBreak = 0x2, ERequestBreakCancel = 0x4, ERequestNotifySignalChange = 0x3, ERequestNotifySignalChangeCancel = 0x8 } |
enum | TVer { EMajorVersionNumber = 1, EMinorVersionNumber = 0, EBuildVersionNumber = KE32BuildVersionNumber } |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
void | Break | ( | TRequestStatus & | aStatus, |
TInt | aTime | |||
) | [inline] |
Causes a break condition to be transmitted to the receiving device
TRequestStatus & aStatus | The asynchronous request status |
TInt aTime | The time interval in microseconds after which the break condition will be released |
void | Caps | ( | TDes8 & | aCaps | ) | [inline] |
Get the capabilities of the serial device. TCommCapsV03
TDes8 & aCaps | A packaged object to be filled with the capabilities of the device. |
void | Config | ( | TDes8 & | aConfig | ) | [inline] |
Get the current configuration of the serial device TCommConfigV02
TDes8 & aConfig | A packaged object to be filled with the configuration information by the driver |
TUint | MinTurnaroundTime | ( | ) | [inline] |
Get the minimum turnaround time before a transmission can begin after a receive operation
void | NotifyReceiveDataAvailable | ( | TRequestStatus & | aStatus | ) | [inline] |
Request notification when there is data available to be read from the driver receive buffer
TRequestStatus & aStatus | The asynchronous request status |
void | NotifyReceiveDataAvailableCancel | ( | ) | [inline] |
Cancel a pending data notification request
void | NotifySignalChange | ( | TRequestStatus & | aStatus, |
TUint & | aSignals, | |||
TUint | aSignalMask = 0x3F | |||
) | [inline] |
Request notification when one of the signals change. The signals that could change are KSignalCTS, KSignalDSR, KSignalDCD, KSignalRNG, KSignalRTS, KSignalDTR, KSignalBreak.
TRequestStatus & aStatus | The asynchronous request status |
TUint & aSignals | Pointer to the bitmask containing the changed signals |
TUint aSignalMask = 0x3F | Bitmask of signals to be monitored |
void | NotifySignalChangeCancel | ( | ) | [inline] |
Cancel a pending signal change notification request
TInt | Open | ( | TInt | aUnit | ) | [inline] |
TInt aUnit | The unit number of the serial device. |
TInt | QueryReceiveBuffer | ( | ) | [inline] |
Get the number of unread characters in the receive buffer of the driver
void | Read | ( | TRequestStatus & | aStatus, |
TDes8 & | aDes | |||
) | [inline] |
Read from the channel
TRequestStatus & aStatus | The asynchronous request status |
TDes8 & aDes | Buffer to be filled in by the driver |
void | Read | ( | TRequestStatus & | aStatus, |
TDes8 & | aDes, | |||
TInt | aLength | |||
) | [inline] |
Read from the channel
TRequestStatus & aStatus | The asynchronous request status |
TDes8 & aDes | Buffer to be filled in by the driver |
TInt aLength | The length of the data to be read |
void | ReadOneOrMore | ( | TRequestStatus & | aStatus, |
TDes8 & | aDes | |||
) | [inline] |
Read one or more characters from the channel. If there is data in the serial driver's buffer when ReadOneOrMore() is called it will read as much data as possible (up to the maximum length of the supplied buffer) and then return. If there is no data in the buffer the request will complete as soon as one or more bytes arrive at the serial hardware.
TRequestStatus & aStatus | The asynchronous request status |
TDes8 & aDes | Buffer to be filled in by the driver |
TInt | SetConfig | ( | const TDesC8 & | aConfig | ) | [inline] |
Set the cofiguration of the serial device TCommConfigV02
const TDesC8 & aConfig | A packaged object containing the configuration information |
TInt | SetMinTurnaroundTime | ( | TUint | aMicroSeconds | ) | [inline] |
Set the minimum turnaround time between a receive and the next transmission operation
TUint aMicroSeconds | The turnaround time in microseconds |
TInt | SetReceiveBufferLength | ( | TInt | aLength | ) | [inline] |
Set the length of the receive buffer
TInt aLength | The length of the receive buffer to be set |
TVersion | VersionRequired | ( | ) | const [inline] |
Get the version number required by the driver TVersion
void | Write | ( | TRequestStatus & | aStatus, |
const TDesC8 & | aDes | |||
) | [inline] |
Write to the channel
TRequestStatus & aStatus | The asynchronous request status |
const TDesC8 & aDes | Buffer containing the data to be sent |
void | Write | ( | TRequestStatus & | aStatus, |
const TDesC8 & | aDes, | |||
TInt | aLength | |||
) | [inline] |
Write to the channel
TRequestStatus & aStatus | The asynchronous request status |
const TDesC8 & aDes | Buffer containing the data to be sent |
TInt aLength | The length of the data to be sent |
Synchronous request types
EControlConfig |
Get the current configuration |
EControlSetConfig |
Set the device configuration |
EControlCaps |
Get the device capabilities |
EControlSignals |
Read the state of Modem control signals supported |
EControlSetSignals |
Set the state of output modem control signals |
EControlQueryReceiveBuffer |
Query the driver receive buffer for data availability |
EControlResetBuffers |
Reset the driver buffers |
EControlReceiveBufferLength |
Get the driver receive buffer length |
EControlSetReceiveBufferLength |
Set the driver receive buffer length |
EControlMinTurnaroundTime |
Get the minimum turnaround time between a receive and subsequent transmission operation |
EControlSetMinTurnaroundTime |
Set the minimum turnaround time between a receive and subsequent transmission operation |
Asynchronous request types
ERequestRead = 0x0 |
Read request |
ERequestReadCancel = 0x1 |
Cancel read request |
ERequestWrite = 0x1 |
Write reqeust |
ERequestWriteCancel = 0x2 |
Cancel write request |
ERequestBreak = 0x2 |
Break request |
ERequestBreakCancel = 0x4 |
Cancel break request |
ERequestNotifySignalChange = 0x3 |
Signal change notification request |
ERequestNotifySignalChangeCancel = 0x8 |
Cancel signal change notification request |
Serial device driver build version.
EMajorVersionNumber = 1 |
Major Version |
EMinorVersionNumber = 0 |
Minor Version |
EBuildVersionNumber = KE32BuildVersionNumber |
Build Version |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.