SPI-implementation for getting unit patterns

see issue #85