beautypg.com

Chapter 2, I/o bootup library, Overview – Casio Cassiopeia PA-2400 User Manual

Page 7: Function, I/o bootup library 2.1 overview, 2 function

background image

7

2. I/O Bootup Library

2.1 Overview

The I/O bootup library monitors the connection status of the dedicated I/O Box and notifies the user

of the status.

2.2 Function

This library supports only one function, iobox_chk(). The iobox_chk() function monitors and

detects, for a specified period, whether I/O Box is mounted, and returns the result (mounting

detected, time-out error, or error). Each time this function is used, it is necessary to also execute

"Permit interrupt, Wait for interrupt and time-out, and Prohibit interrupt". The following diagram

shows the range covered by this library.

Fig. 2.1

(3) I/O Box ON Signal

PA-2400

(2) Mounting

I/O PORT: 0

IOBOX1.DLL

User Application

(1) iobox_chk ( TIME_OUT_SEC ) ;

(4) Timeout

(5) Return

Detection, Timeout

Error

I/O Box