serial_interrupt_master 6 Haps
Quick-Start Platform x86 Reference Manual  /  5 Interfaces  / 

serial_interrupt_slave

Description
SIM_INTERFACE(serial_interrupt_slave) {
        void (*start)(conf_object_t *obj);
        int (*fetch)(conf_object_t *obj);
        void (*stop)(conf_object_t *obj, int mode);
};

#define SERIAL_INTERRUPT_SLAVE_INTERFACE "serial_interrupt_slave"

The interface serial_interrupt_slave should be implemented by interrupt requester, has functions start, stop and fetch.

Serial interrupt controller calls start to start the serial interrupt communications and detects interrupt states one by one by fetch and finishes serial interrupt sequence by stop.

The returned value of fetch is the level of current data frame, could be either 0 (low) or 1 (high).

The mode is used to specifies the SERIRQ transfer cycles mode, 1 for Quiet and 0 for Continuous mode.

Execution Context
Cell Context for all methods.

serial_interrupt_master 6 Haps