API Reference: Libraries

 Top

pitx-sp_cpld

NAME

pitx-sp_cpld - pITX-SP CPLD general driver

ROUTINES

pitxCpldInit( ) - initialize pITX-SP CPLD
cpldGpioEnable( ) - Enable GPIOs
cpldGpioDisable( ) - Disable GPIOs
cpldGpioIntEnable( ) - Enable GPIO interrupts
cpldGpioIntDisable( ) - Disable GPIO interrupts
cpldJumperStatusGet( ) - get autostart jumper status
cpldSetAutostart( ) - set autostart function
cpldWakeonLanEnable( ) - Wake on LAN control enable
cpldWakeonLanDisable( ) - Wake on LAN control disable

DESCRIPTION

Basic functions to control pITX-SP CPLD. For details see: KTD-S0003-C pITX-SP Software Guide


API Reference: Routines

 Top

pitxCpldInit( )

NAME

pitxCpldInit( ) - initialize pITX-SP CPLD

SYNOPSIS

void pitxCpldInit(void)

DESCRIPTION

This function should be called before any other CPLD function (GPIO, fan, watchdog)

RETURNS

N/A

ERRNO

SEE ALSO

pitx


API Reference: Routines

 Top

cpldGpioEnable( )

NAME

cpldGpioEnable( ) - Enable GPIOs

SYNOPSIS

void cpldGpioEnable(void)

DESCRIPTION

This function enables GPIO (enabled by default) implemented in CPLD

RETURNS

N/A

ERRNO

SEE ALSO

pitx


API Reference: Routines

 Top

cpldGpioDisable( )

NAME

cpldGpioDisable( ) - Disable GPIOs

SYNOPSIS

void cpldGpioDisable(void)

DESCRIPTION

This function disables GPIOs (enabled by default)

RETURNS

N/A

ERRNO

SEE ALSO

pitx


API Reference: Routines

 Top

cpldGpioIntEnable( )

NAME

cpldGpioIntEnable( ) - Enable GPIO interrupts

SYNOPSIS

void cpldGpioIntEnable(void)

DESCRIPTION

This function enables GPIO interrupts

RETURNS

N/A

ERRNO

SEE ALSO

pitx


API Reference: Routines

 Top

cpldGpioIntDisable( )

NAME

cpldGpioIntDisable( ) - Disable GPIO interrupts

SYNOPSIS

void cpldGpioIntDisable(void)

DESCRIPTION

This function disables GPIO interrupts

RETURNS

N/A

ERRNO

SEE ALSO

pitx


API Reference: Routines

 Top

cpldJumperStatusGet( )

NAME

cpldJumperStatusGet( ) - get autostart jumper status

SYNOPSIS

UINT8 cpldJumperStatusGet(void)

DESCRIPTION

This function returns status of autostart jumper

RETURNS

0 or 1

ERRNO

SEE ALSO

pitx


API Reference: Routines

 Top

cpldSetAutostart( )

NAME

cpldSetAutostart( ) - set autostart function

SYNOPSIS

void cpldSetAutostart(UINT8 func)

DESCRIPTION

This function returns status of autostart jumper

PARAMETERS

func

1 - restart, 0 - do nothing

RETURNS

N/A

ERRNO

SEE ALSO

pitx


API Reference: Routines

 Top

cpldWakeonLanEnable( )

NAME

cpldWakeonLanEnable( ) - Wake on LAN control enable

SYNOPSIS

void cpldWakeonLanEnable(void)

DESCRIPTION

This function enables Wake on Lan Control

RETURNS

N/A

ERRNO

SEE ALSO

pitx


API Reference: Routines

 Top

cpldWakeonLanDisable( )

NAME

cpldWakeonLanDisable( ) - Wake on LAN control disable

SYNOPSIS

void cpldWakeonLanDisable(void)

DESCRIPTION

This function disables Wake on Lan Control

RETURNS

N/A

ERRNO

SEE ALSO

pitx