spiMaster (FB)ΒΆ
FUNCTION_BLOCK spiMaster
This function block represents a spi master.
- InOut:
Scope
Name
Type
Comment
Input
_diMode
DINT
>0: SPI mode to be set; must be set before calling init(); after call of init() it contains the re-read value and can be used to check if the setting was correct
_diBitsPerWord
DINT
>0: SPI bits per word; must be set before calling init(); after call of init() it contains the re-read value and can be used to check if the setting was correct
_diMaxSpeed
DINT
>0: SPI max speed setting; must be set before calling init(); after call of init() it contains the re-read value and can be used to check if the setting was correct
Properties:
Methods:
Structure: