www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - External Disk API


Extdisk_install_drive

Install a drive B:

int Extdisk_install_drive ( unsigned long totalsectors );

Parameters

totalsectors

Total sector count of disk

Return Value

= 0: success
!= 0: failed

Comments

Prior to this call the application must provide a disk read/write function installed at interrupt 0xB1.   This installed handler function should expect:

    AX       1 for write, 0 for read.
    BX,DX    Sector number (BX is MSH of unsigned long)
    CX       Number of sectors to read/write
    ES:DI    Segment:Offset of memory area to read/write

The handler should return 0 in AX if OK.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.00V1.00V1.00V0.90

Supported by @CHIP-RTOS C Library since version

    CLIB
    V2.04

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document