public static int aa_spi_master_ss_polarity(int aardvark, AardvarkSpiSSPolarity polarity) { if (!AA_LIBRARY_LOADED) { return(-4); } return(net_aa_spi_master_ss_polarity(aardvark, polarity)); }
/* * Change the output polarity on the SS line. * * Note: When configured as an SPI slave, the Aardvark will * always be setup with SS as active low. Hence this function * only affects the SPI master functions on the Aardvark. */ // enum AardvarkSpiSSPolarity (from declaration above) // AA_SPI_SS_ACTIVE_LOW = 0 // AA_SPI_SS_ACTIVE_HIGH = 1 public static int aa_spi_master_ss_polarity( int aardvark, AardvarkSpiSSPolarity polarity ) { if (!AA_LIBRARY_LOADED) { return((int)AardvarkStatus.AA_INCOMPATIBLE_LIBRARY); } return(net_aa_spi_master_ss_polarity(aardvark, polarity)); }
private static extern int net_aa_spi_master_ss_polarity(int aardvark, AardvarkSpiSSPolarity polarity);
/* * Change the output polarity on the SS line. * * Note: When configured as an SPI slave, the Aardvark will * always be setup with SS as active low. Hence this function * only affects the SPI master functions on the Aardvark. */ // enum AardvarkSpiSSPolarity (from declaration above) // AA_SPI_SS_ACTIVE_LOW = 0 // AA_SPI_SS_ACTIVE_HIGH = 1 public static int aa_spi_master_ss_polarity( int aardvark, AardvarkSpiSSPolarity polarity ) { if (!AA_LIBRARY_LOADED) return (int)AardvarkStatus.AA_INCOMPATIBLE_LIBRARY; return net_aa_spi_master_ss_polarity(aardvark, polarity); }
private static extern int net_aa_spi_master_ss_polarity(int aardvark, AardvarkSpiSSPolarity polarity);
public static int aa_spi_master_ss_polarity(int aardvark, AardvarkSpiSSPolarity polarity) { if (!AA_LIBRARY_LOADED) { return -4; } return net_aa_spi_master_ss_polarity(aardvark, polarity); }