Table of contents
RMOS3 V3.50 Reference Manual Part II
Programming Manual, 07/2012, A5E03692298-01 7
5.6.3.7 Write logical blocks (FD2_WRITE) ............................................................................................. 208
5.6.3.8 Position to track (FD2_SEEK) .................................................................................................... 208
5.6.3.9 Position to track 0 (FD2_RECA) ................................................................................................ 208
5.6.3.10 Get drive status (FD2_UNIT_RDY) ............................................................................................ 208
5.6.3.11 Remove drive parameters (delete) (FD2_DELETE) .................................................................. 209
5.6.3.12 Define drive parameters (create) (FD2_CREATE) .................................................................... 209
5.6.4 Configuration .............................................................................................................................. 210
5.6.4.1 Driver control data (DCD) table .................................................................................................. 210
5.6.4.2 Unit Control Data (UCD) table ................................................................................................... 210
5.6.4.3 Interrupt routines of the FD0 driver ............................................................................................ 216
5.6.4.4 Stack requirements of the FD0 driver ........................................................................................ 216
5.7 HD0 driver .................................................................................................................................. 217
5.7.1 Properties ................................................................................................................................... 217
5.7.1.1 Area of application and opcode ................................................................................................. 218
5.7.2 RmIO interface ........................................................................................................................... 218
5.7.2.1 Function parameter .................................................................................................................... 219
5.7.2.2 Parameter pState ....................................................................................................................... 220
5.7.2.3 Parameter pParam ..................................................................................................................... 222
5.7.3 Opcodes ..................................................................................................................................... 223
5.7.3.1 Reserve unit (00H) ..................................................................................................................... 223
5.7.3.2 Release unit (01H) ..................................................................................................................... 223
5.7.3.3 Read logical block (02H) ............................................................................................................ 223
5.7.3.4 Write logical block (03H) ............................................................................................................ 223
5.7.3.5 Format hard disk (04H) .............................................................................................................. 224
5.7.3.6 Read logical blocks (05H) .......................................................................................................... 224
5.7.3.7 Write logical blocks (06H) .......................................................................................................... 224
5.7.3.8 Read drive parameters (0AH) .................................................................................................... 225
5.7.3.9 Remove drive parameters (delete or dismount) (0BH) .............................................................. 225
5.7.3.10 Define drive parameters (create or mount) (0CH) ..................................................................... 225
5.7.4 Configuration .............................................................................................................................. 226
5.7.4.1 Driver control data (DCD) table .................................................................................................. 226
5.7.4.2 Unit Control Data (UCD) table ................................................................................................... 226
5.7.4.3 Driver-specific parameters in the UCD block ............................................................................. 227
5.7.4.4 Interrupt routines of the HD0 driver............................................................................................ 233
5.7.4.5 Stack requirements of the HD0 driver ........................................................................................ 233
5.8 COM driver ................................................................................................................................. 234
5.8.1 Properties ................................................................................................................................... 234
5.8.1.1 Sequence of functions ............................................................................................................... 234
5.8.1.2 Timeout handling........................................................................................................................ 235
5.8.1.3 Transfer protocol ........................................................................................................................ 235
5.8.1.4 Signal sequences ....................................................................................................................... 236
5.8.1.5 Example of signal sequences .................................................................................................... 238
5.8.1.6 Control characters ...................................................................................................................... 241
5.8.1.7 Opcodes of the COM driver ....................................................................................................... 241
5.8.2 RmIO interface ........................................................................................................................... 242
5.8.2.1 Function parameter .................................................................................................................... 242
5.8.2.2 Parameter pState ....................................................................................................................... 243
5.8.2.3 Parameter pParam ..................................................................................................................... 244
5.8.3 Opcodes ..................................................................................................................................... 245
5.8.3.1 Reserve unit (C64_RESERVE) .................................................................................................. 245
5.8.3.2 Release unit (C64_RELEASE) ................................................................................................... 246