Casio IT-2000W User Manual

Page 178

Advertising
background image

178

Software Card Lock

Sets or acquires the Lock/Unlock status of the software-type card lock switch.

This machine has a card lock mechanism that is on the card case to prevent accidental removal

of the card. This mechanism has a software driver that detects the released state of this lock and

executes the appropriate file closing procedure. However, some types of cards, depending on the

card shape, can not be fastened by the lock switch. If this is the case, even if a card is present it

will not be detected. This function is provided to handle this type of card.

To use a card for which the card lock mechanism can not be used, call this function in advance to

set the software lock switch to ON. Now a card can be detected when it is inserted or removed.

SYNTAX

int SYS_SetCardLock(int OnOff);

INPUT

OnOff = Cardlock ON/OFF

0 Unlock

Other than 0 Lock

OUTPUT

0 Normal termination

Logic Circuit of Software Card-Lock

Fig. 8.10

PCMCIA

Software Lock

Switch

Card

GA

Advertising