Epson Research and Development

Page 39

Vancouver Design Center

 

 

 

8 Hardware Abstraction Layer (HAL)

8.1 Introduction

The HAL is a processor independent programming library provided by Seiko Epson. HAL provides an easy method to program and configure the S1D13504. HAL allows easy porting from one S1D1350x product to another and between system architectures. HAL is included in the utilities provided with the S1D13504 evaluation system.

8.2 API for 13504HAL

The following is a description of the HAL library. Updates and revisions to the HAL may include new functions not included in the following documentation

8.2.1 Initialization

int seDeRegisterDevice(int device)

Description: Removes a device's handle from the HAL library.

Parameter: device - registered device ID

Return Value: ERR_OK - operation completed with no problems

ERR_INVALID_REG_DEVICE - device argument is not valid

void seGetHalVersion(const char **pVersion, const char **pStatus, const char **pStatusRevision)

Description: Gets HAL library version.

Parameter: pVersion - must point to an allocated string of size VER_SIZE pStatus - must point to an allocated string of size STATUS_SIZE pStatusRevision - must point to an allocated string of size STAT_REV_SIZE

Return Value: None

Programming Notes and Examples

S1D13504

Issue Date: 01/02/01

X19A-G-002-07

Page 177
Image 177
Epson S1D13504 manual Hardware Abstraction Layer HAL, API for 13504HAL, Initialization Int seDeRegisterDeviceint device