Nl spi batch

Implemented spi batch

reviewed by: @tcr @jiahuang @tcr @johnnyman727 
use booleans instead of numbers here?