Project

General

Profile

SIS380x

The SIS3800 is a 32-channel, scaler, VME card where each channel is 32 bits wide. The SIS3805 is a 32-channel, scaler, VME card where each channel's counter is 48-bits. This driver only supports A16 mode.

The latest version for both is v1.1. They were built against MOOC v4.8.

SIS3800 Start-up Script Functions

The following functions are called in your front-end's startup script (after loading MOOC).

STATUS SIS3800_create_mooc_class(uint8_t const cls)

This function should be called once in a front-end's startup script. It attaches the device driver to MOOC and allows instances to be created via SIS3800_create_mooc_instance(). The parameter, cls, is a "class code" to use for the MOOC class. On a given front-end, all class codes need to be unique.

This function returns OK (0) if the class was successfully added to MOOC and ERROR (-1) if it was unsuccessful.

STATUS SIS3800_create_mooc_instance(unsigned short const oid, int dip)

Used in startup scripts, this function creates an instance of a MOOC class (i.e. driver). The startup script should have previously called SIS3805_create_mooc_class().

oid represents the instance's "object ID", which needs to be unique on the front-end. All ACNET devices that refer to this instance will have the second word of their SSDN set to this value. dip is the hardware's DIP switch setting for the hardware's base address in A16 VME space. It should range from 0 through 0x1f.

If the function detects and initializes the hardware correctly, this function returns OK. Any errors results in ERROR being returned.

SIS3805 Start-up Script Functions

The following functions are called in your front-end's startup script (after loading MOOC).

STATUS SIS3805_create_mooc_class(uint8_t const cls)

This function should be called once in a front-end's startup script. It attaches the device driver to MOOC and allows instances to be created via SIS3805_create_mooc_instance(). The parameter, cls, is a "class code" to use for the MOOC class. On a given front-end, all class codes need to be unique.

This function returns OK (0) if the class was successfully added to MOOC and ERROR (-1) if it was unsuccessful.

STATUS SIS3805_create_mooc_instance(unsigned short const oid, int dip)

Used in startup scripts, this function creates an instance of a MOOC class (i.e. driver). The startup script should have previously called SIS3805_create_mooc_class().

oid represents the instance's "object ID", which needs to be unique on the front-end. All ACNET devices that refer to this instance will have the second word of their SSDN set to this value. dip is the hardware's DIP switch setting for the hardware's base address in A16 VME space. It should range from 0 through 0x1f.

If the function detects and initializes the hardware correctly, this function returns OK. Any errors results in ERROR being returned.