bitsPerWord property
int
get
bitsPerWord
Gets the default number of bits per word for this SpidevHandle.
Implementation
int get bitsPerWord {
assert(isOpen);
_bitsPerWord ??= SpidevPlatformInterface.instance.getWordSize(_fd);
return _bitsPerWord!;
}
set
bitsPerWord
(int bitsPerWord)
Sets the default number of bits per word for this SpidevHandle.
Implementation
void set bitsPerWord(int bitsPerWord) {
ArgumentError.checkNotNull(bitsPerWord, "bitsPerWord");
assert(isOpen);
if (bitsPerWord != _bitsPerWord) {
SpidevPlatformInterface.instance.setWordSize(_fd, bitsPerWord);
_bitsPerWord = bitsPerWord;
}
}