![]() |
CROSS Technical Documentation User Manual and Technical Doc.
INFN Milano Bicocca
|
#include "tutti_gli_header.h"
Go to the source code of this file.
Functions | |
void | SPI_callback (uint32_t event) |
After that the SPI ends its operations and the interrupt is generated this signal function is called which marks errors, if any and flags of operation done. | |
void | SPI_Inizialize (void) |
SPI is initialized here. Its ise t at 8 bits and 100 KHz, as default. | |
void | SPI_Inizialize_per_il_DAC (void) |
SPI is initialized here for DAC. Remember to set the variable SPI_speed before the call. This function is becoming obsolote. | |
void | SPItx_16_per_il_DAC (uint16_t dato) |
unsigned char | SPIrx (void) |
unsigned long int | SPIrx24 (void) |
Variables | |
ARM_DRIVER_SPI | Driver_SPI0 |
ARM_DRIVER_SPI * | SPIdrv = &Driver_SPI0 |
uint32_t | evento_SPI |
This is the variable which resembles the flags from the communication. | |
uint32_t | SPI_speed = 5e5 |
The speed to be set to SPI. It could varies from chip to chip. | |