added spi status register write/read support