I/O Bootup Library; Chapter 5 I/O Bootup Library; Overview; Function - Casio PA-2400W Software Manual

C library manual
Hide thumbs Also See for PA-2400W:
Table of Contents

Advertisement

5. I/O Bootup Library

5.1 Overview

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

5.2 Function

This library supports only one function, iobox_chk(). The iobox_chk() function monitors and detects, for a
specified period, whether PA-2400W is mounted on I/O Box, and returns the result (mounting detected,
timeout 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. 5.1
PA-2400W
(1) iobox_chk ( TIME_OUT_SEC ) ;
Karnel
(2) Mounting
Because the interrupt signals are detected by their signal levels, they can be detected even if the order of (1)
and (2) is changed. (The connection status can be detected whether this function is called before or after the
PA-2400W is mounted on I/O Box is mounted, unless a timeout occurs.)
User Application
IOBOX1.DLL
(4) Interrupt Signal
I/O PORT: 0
I/O Box
35
(5) Return
Detection, Timeout
Error
(4) Timeout
(3) I/O Box ON Signal

Advertisement

Table of Contents
loading

Table of Contents