SPI与API区别