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

Lifecycle::CALLBACK_METHODS

Instance Attribute Summary

Attributes included from Component

#board, #params

Attributes included from State

#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

#initialize, #micro_delay

Methods included from State

#update_state

Methods included from Lifecycle

included

Instance Method Details

#mutexObject



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