www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - Hardware API


pfe_get_vectors

Get the Function Pointers of Hardware API functions. So the functions can be called direct (without software interrupt). This is much faster.

void pfe_get_vectors ( HWAPI_VECTORS far *vectors );

Parameters

vectors

Enumerator specifies desired number of wait states:

struct HWAPI_VECTORS_
{
    int size;
    READ_PIOS readPios;
    WRITE_PIOS writePios;
}
HWAPI_VECTORS ;


where

typedef void (far *WRITE_PIOS) (unsigned short value) ;
typedef unsigned short (far *READ_PIOS) (void) ;

Return Value

-- none --.

Comments

The size element of the HWAPI_VECTORS structure is set to 2 within this library API interface function.  The two output vectors will be placed in the writePios and readPios elements.

The prototypes for the two indirectly accessed API functions are

void writePios (unsigned short value) ;
unsigned short readPios (void) ;

where input parameter value and return value from readPios both have format:
    B0..B13: PIO value
    B14...B15: -- not used --

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.03V1.00V1.00n/a

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document