User Manual

static unsigned char OrangutanSPIMaster::transmit(unsigned char data)
unsigned char spi_master_transmit(unsigned char data)
Transmits the given byte of data to the SPI slave device, and returns the byte that the slave simultaneously
sent back.
static unsigned char OrangutanSPIMaster::transmitAndDelay(unsigned char data, unsigned char
post_delay_us)
unsigned char spi_master_transmit_and_delay(unsigned char data, unsigned char post_delay_us)
This command is just like spi_master_transmit() except that after the transmission has finished it delays for
the specified number of microseconds before returning. This added delay is useful if you are communicating
with any slave device that requires some time between SPI transmissions to give it time to process the byte it
has received (e.g. the auxiliary processors on the Orangutan X2 and Orangutan SVP). post_delay_us should
be a number between 0 and 255.
Pololu AVR Library Command Reference © 2001–2015 Pololu Corporation
12. Orangutan SPI Master Functions Page 47 of 65