Module: Denko::Behaviors::BusController
- Includes:
- Component, Subcomponents
- Included in:
- BusControllerAddressed, SPI::BusCommon
- Defined in:
- lib/denko/behaviors/bus_controller.rb
Constant Summary
Constants included from Lifecycle
Instance Attribute Summary
Attributes included from Component
Attributes included from State
Instance Method Summary collapse
Methods included from Subcomponents
#add_component, #add_hw_i2c, #add_hw_spi, #add_single_pin, #components, #hw_i2c_comps, #hw_spi_comps, #remove_component, #remove_hw_i2c, #remove_hw_spi, #remove_single_pin, #single_pin_components
Methods included from Component
Methods included from State
Methods included from Lifecycle
Instance Method Details
#mutex ⇒ Object
7 8 9 10 |
# File 'lib/denko/behaviors/bus_controller.rb', line 7 def mutex # mruby doesn't have Thread or Mutex, so only stub there. @mutex ||= Denko.mruby? ? Denko::MutexStub.new : Mutex.new end |