nsdsp_session_set_pgcd
nsdsp_session_set_red_led nsdsp_session_set_green_led nsdsp_session_short_delay nsdsp_session_delay_us nsdsp_session_delay_msnsdsp_session_set_pgcd
This function sets PGC and PGDO pins high or low
Syntax
int nsdsp_session_set_pgcd(
nsdsp_session_t session,
int spi,
int pgc,
int pgd
);
Parameters
session - a reference to the Session Object
spi - non-zero to relinquish control of PGC and PGDO to SPI, zero to set PGC and PGD pins according to pgc and pgd values.
pgc - one to set PGC high, zero to set PGC low
pgd - one to set PGDO high, zero to set PGDO low
Return
The function returns non-zero if the command to set PGC and PGDO pins has been succesfully queued, or zero otherwise
Notes
This instruction only queues a command. The command will be sent to NSDSP when you queue enough commands to fill the buffer or when you call nsdsp_session_flush.
Supported session types: SPI
Minimum library version - 163
© 2007-2025 Northern Software Inc. All Rights Reserved.