void SPI_Write (AT91S_SPI *spi, unsigned int npcs, unsigned short data) |
Name | Type | Default | Description |
spi | AT91S_SPI * |
Pointer to an AT91S_SPI instance. |
|
npcs | unsigned int |
Chip select of the component to address (1, 2, 3 or 4). |
|
data | unsigned short |
Word of data to send. |