'What does this common SPI function do?

I see this function in Arduino scripts using SPI: ISR (SPI_STC_vect). I am familiar with C but this doesn't seem to follow - it looks like a function though there is no return type definition, and the argument doesn't make sense. I am new to SPI and cannot find much/any documentation online. Other functions which run during an interrupt are called using attachInterrupt, however this doesn't seem to be called anywhere.



Solution 1:[1]

ISR() is a macro that introduces an interrupt handler.

SPI_STC_vect is a Serial Transfer Complete interrupt vector.

See here for complete documentation, including the list of available interrupt vectors.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1