Artificial intelligent assistant

SPI通信に関する初歩的な質問 spresenseSPI menuconfigSPI CXD56xx Configuration ---> [*] SPI [*] SPI4 nsh/devSPI4

NuttX Driver Model i2c, spi bus driver "/dev" SPI "/dev/" /dev

SPI 3 L3GD20
<


int l3gd20_register(FAR const char *devpath, FAR struct spi_dev_s *spi,
FAR struct l3gd20_config_s *config)


"devpath" /dev open, close, read, write, ioctl POSIX spi_dev_s SPI_XXX() SPI

Spresense SDK

BMI160 SPI
<


spi = cxd56_spibus_initialize(bus);
ret = bmi160_register("/dev/accel0", spi);


1. cxd56_spibus_initialize(bus) SPI SPI
2. spi "/dev/accel0" bmi160



SPI4 Configuration /dev/spi SPI "/dev/xxx"

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 30b0c5419b9386a587a02a1cdd1878f5