Bus services: Difference between revisions
Line 441: | Line 441: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || [[# | | 0 || [[#HasPort]] | ||
|- | |- | ||
| 1 || | | 1 || HasPortForDev | ||
|- | |- | ||
| 2 || [[# | | 2 || [[#IsSupportedBaudRate]] | ||
|- | |- | ||
| 3 || | | 3 || IsSupportedBaudRateForDev | ||
|- | |- | ||
| 4 || [[# | | 4 || [[#IsSupportedFlowControlMode]] | ||
|- | |- | ||
| 5 || | | 5 || IsSupportedFlowControlModeForDev | ||
|- | |- | ||
| 6 || [[# | | 6 || [[#CreatePortSession]] | ||
|- | |- | ||
| 7 || | | 7 || IsSupportedPortEvent | ||
|- | |- | ||
| 8 || | | 8 || IsSupportedPortEventForDev | ||
|- | |- | ||
| 9 || [7.0.0+] | | 9 || [7.0.0+] IsSupportedUnknown | ||
|- | |- | ||
| 10 || [7.0.0+] | | 10 || [7.0.0+] IsSupportedUnknownForDev | ||
|} | |} | ||
== | == HasPort == | ||
Takes a u32 [[#UartPort]] and returns boolean success value. | Takes a u32 [[#UartPort]] and returns boolean success value. | ||
== | == IsSupportedBaudRate == | ||
Takes a u32 [[#UartPort]] and a u32 baudrate and returns boolean success value. | Takes a u32 [[#UartPort]] and a u32 baudrate and returns boolean success value. | ||
== | == IsSupportedFlowControlMode == | ||
Takes a u32 [[#UartPort]] and returns boolean success value. | Takes a u32 [[#UartPort]] and returns boolean success value. | ||
== | == CreatePortSession == | ||
Takes a u32 [[#UartPort]] and returns an [[#IPortSession]]. | Takes a u32 [[#UartPort]] and returns an [[#IPortSession]]. | ||
Line 497: | Line 497: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || | | 0 || OpenPort | ||
|- | |- | ||
| 1 || | | 1 || OpenPortForDev | ||
|- | |- | ||
| 2 || | | 2 || GetWritableLength | ||
|- | |- | ||
| 3 || | | 3 || Send | ||
|- | |- | ||
| 4 || | | 4 || GetReadableLength | ||
|- | |- | ||
| 5 || | | 5 || Receive | ||
|- | |- | ||
| 6 || | | 6 || BindPortEvent | ||
|- | |- | ||
| 7 || | | 7 || UnbindPortEvent | ||
|} | |} | ||
[7.0.0+] | [7.0.0+] OpenPort/OpenPortForDev now takes an additional 0x8-bytes of input. | ||
=== Port Mapping === | === Port Mapping === | ||
OpenPort translates user IDs to to the [[#UartPort]] index. | |||
OpenPortForDev takes the port index verbatim. | |||
= pwm = | = pwm = |