@CHIP-RTOS C Library V2.06 - External Disk API
Extdisk_install_callback
Install a notify callback function int Extdisk_install_callback ( EXTDISK_CALLBACK callback ); Parameters
callback
- Callback function
The following events are possible:
0x01: Drive B: is installed
0x02: Drive B: is deinstalled
0x03: Drive D: is installed
0x04: Drive D: is deinstalled
Return Value
- = 0: success
!= 0: failed
Comments
- Drive B: and D: can be hotpluggable. The driver of the drive will call
the "Deinstall external disk" function, if the media in the drive is
removed. If a new disk is inserted the driver will call the
"Install external disk" function.
Every task has a current working directory. If this directory is set
to some directory on the drive and the media in the drive is removed,
the current working directory will automatically be changed to A:\
for this task, due to the call to the "Deinstall external disk"
function of the driver.
The task can use the "Install notifiy callback function" to install a
callback function on the events "drive is installed" and
"drive is deinstalled" and react in some way.
The maximum number of installable callbacks is 12.
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-
SC12 | SC13 | SC11 | SC1x3 |
-
V1.20 | V1.20 | V1.20 | V1.07 |
Supported by @CHIP-RTOS C Library since version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|