cos.h
struct COS
{
    // REGISTER: Data R/W
    //
    // DESCRIPTION:
    //   Write data to the transmit FIFO. Read data from the receive FIFO.

    static const int Data;

    // REGISTER: Level R/W
    //
    // DESCRIPTION:
    //   Level is compared with the transmit and receive Size fields to generate
    //   an interrupt.

    static const int Level;

    // REGISTER: Transmit R/W
    //
    // FIELD: Enable R/W
    //   Enable the serial data transfers.
    //
    // FIELD: IruptMask R/W
    //   Generate an interrupt when Size>Level.
    //
    // FIELD: Interrupt R
    //   Indicates whether an interrupt is being requested.
    //
    // FIELD: Size R
    //   Number of free words in the transmit FIFO.
    //
    // DESCRIPTION:
    //   Transmit control register.

    static const int Transmit;

    // REGISTER: Receive R/W
    //
    // FIELD: Enable R/W
    //   Enable the serial data transfers.
    //
    // FIELD: IruptMask R/W
    //   Generate an interrupt when Size>Level.
    //
    // FIELD: Interrupt R
    //   Indicates whether an interrupt is being requested.
    //
    // FIELD: Size R
    //   Number of data words in the receive FIFO.
    //
    // DESCRIPTION:
    //   Receive control register.

    static const int Receive;

    // MASKS: Transmit, Receive

    static const int Enable;
    static const int IruptMask;
    static const int Interrupt;
    static const int Size;
};
© Copyright 2000-2001 Adrian Lewis