Introduced properties

fun eds: Bool

bcm2835 :: RPiPin :: eds

fun fen

bcm2835 :: RPiPin :: fen

Falling edge detect
fun fsel=(mode: FunctionSelect)

bcm2835 :: RPiPin :: fsel=

Select mode: input, output or alts
fun hen

bcm2835 :: RPiPin :: hen

High edge detect
fun len

bcm2835 :: RPiPin :: len

Low edge detect
fun lev: Bool

bcm2835 :: RPiPin :: lev

Return input on pin, true for high and false for low
fun pud=(pud: PUDControl)

bcm2835 :: RPiPin :: pud=

Set pull up mode
fun ren

bcm2835 :: RPiPin :: ren

Raising edge detect

Redefined properties

redef type SELF: RPiPin

bcm2835 $ RPiPin :: SELF

Type of this instance, automatically specialized in every class
redef fun write(high: Bool)

bcm2835 $ RPiPin :: write

Set output

All properties

fun !=(other: nullable Object): Bool

core :: Object :: !=

Have self and other different values?
fun ==(other: nullable Object): Bool

core :: Object :: ==

Have self and other the same value?
type CLASS: Class[SELF]

core :: Object :: CLASS

The type of the class of self.
type SELF: Object

core :: Object :: SELF

Type of this instance, automatically specialized in every class
fun address_is_null: Bool

core :: Pointer :: address_is_null

Is the address behind this Object at NULL?
protected fun class_factory(name: String): CLASS

core :: Object :: class_factory

Implementation used by get_class to create the specific class.
fun class_name: String

core :: Object :: class_name

The class name of the object.
fun eds: Bool

bcm2835 :: RPiPin :: eds

fun fen

bcm2835 :: RPiPin :: fen

Falling edge detect
fun free

core :: Pointer :: free

Free the memory pointed by this pointer
fun fsel=(mode: FunctionSelect)

bcm2835 :: RPiPin :: fsel=

Select mode: input, output or alts
fun get_class: CLASS

core :: Object :: get_class

The meta-object representing the dynamic type of self.
fun hash: Int

core :: Object :: hash

The hash code of the object.
fun hen

bcm2835 :: RPiPin :: hen

High edge detect
init init

core :: Object :: init

fun inspect: String

core :: Object :: inspect

Developer readable representation of self.
protected fun inspect_head: String

core :: Object :: inspect_head

Return "CLASSNAME:#OBJECTID".
intern fun is_same_instance(other: nullable Object): Bool

core :: Object :: is_same_instance

Return true if self and other are the same instance (i.e. same identity).
fun is_same_serialized(other: nullable Object): Bool

core :: Object :: is_same_serialized

Is self the same as other in a serialization context?
intern fun is_same_type(other: Object): Bool

core :: Object :: is_same_type

Return true if self and other have the same dynamic type.
fun len

bcm2835 :: RPiPin :: len

Low edge detect
fun lev: Bool

bcm2835 :: RPiPin :: lev

Return input on pin, true for high and false for low
init nul: Pointer

core :: Pointer :: nul

C NULL pointer
intern fun object_id: Int

core :: Object :: object_id

An internal hash code for the object based on its identity.
fun output

core :: Object :: output

Display self on stdout (debug only).
intern fun output_class_name

core :: Object :: output_class_name

Display class name on stdout (debug only).
fun pud=(pud: PUDControl)

bcm2835 :: RPiPin :: pud=

Set pull up mode
fun ren

bcm2835 :: RPiPin :: ren

Raising edge detect
fun serialization_hash: Int

core :: Object :: serialization_hash

Hash value use for serialization
intern fun sys: Sys

core :: Object :: sys

Return the global sys object, the only instance of the Sys class.
abstract fun to_jvalue(env: JniEnv): JValue

core :: Object :: to_jvalue

fun to_s: String

core :: Object :: to_s

User readable representation of self.
abstract fun write(high: Bool)

bcm2835 :: Pin :: write

Set the output of this pin
package_diagram bcm2835::RPiPin RPiPin bcm2835::Pin Pin bcm2835::RPiPin->bcm2835::Pin core::Pointer Pointer bcm2835::RPiPin->core::Pointer core::Object Object bcm2835::Pin->core::Object core::Pointer->core::Object ...core::Object ... ...core::Object->core::Object

Ancestors

interface Object

core :: Object

The root of the class hierarchy.

Parents

interface Pin

bcm2835 :: Pin

A physical binary pin
extern class Pointer

core :: Pointer

Pointer classes are used to manipulate extern C structures.

Class definitions

bcm2835 $ RPiPin
extern class RPiPin `{ RPiGPIOPin `}
	super Pin

	new p1_03 `{ return RPI_GPIO_P1_03; `}

	new p1_05 `{ return RPI_GPIO_P1_05; `}
	new p1_07 `{ return RPI_GPIO_P1_07; `}

	new p1_11 `{ return RPI_GPIO_P1_11; `}
	new p1_12 `{ return RPI_GPIO_P1_12; `}
	new p1_13 `{ return RPI_GPIO_P1_13; `}

	new p1_15 `{ return RPI_GPIO_P1_15; `}
	new p1_16 `{ return RPI_GPIO_P1_16; `}

	new p1_18 `{ return RPI_GPIO_P1_18; `}
	new p1_19 `{ return RPI_GPIO_P1_19; `}

	new p1_21 `{ return RPI_GPIO_P1_21; `}
	new p1_22 `{ return RPI_GPIO_P1_22; `}
	new p1_23 `{ return RPI_GPIO_P1_23; `}
	new p1_24 `{ return RPI_GPIO_P1_24; `}

	new p1_26 `{ return RPI_GPIO_P1_26; `}

	# Select mode: input, output or alts
	fun fsel=(mode: FunctionSelect) `{ bcm2835_gpio_fsel(self, mode); `}

	# Set output
	redef fun write(high) `{ bcm2835_gpio_write(self, high? HIGH: LOW); `}

	# Set pull up mode
	fun pud=(pud: PUDControl) `{ bcm2835_gpio_set_pud(self, pud); `}

	# Falling edge detect
	# Do not use on raspbian, it is bugged!
	fun fen `{ bcm2835_gpio_fen(self); `}
	fun clr_fen `{ bcm2835_gpio_clr_fen(self); `}

	# Raising edge detect
	# Do not use on raspbian, it is bugged!
	fun ren `{ bcm2835_gpio_ren(self); `}
	fun clr_ren `{ bcm2835_gpio_clr_ren(self); `}

	# High edge detect
	# Do not use on raspbian, it is bugged!
	fun hen `{ bcm2835_gpio_hen(self); `}
	fun clr_hen `{ bcm2835_gpio_clr_hen(self); `}

	# Low edge detect
	# Do not use on raspbian, it is bugged!
	fun len `{ bcm2835_gpio_len(self); `}
	fun clr_len `{ bcm2835_gpio_clr_len(self); `}

	fun set_eds `{ bcm2835_gpio_set_eds(self); `}
	fun eds: Bool `{ return bcm2835_gpio_eds(self); `}

	# Return input on pin, true for high and false for low
	fun lev: Bool `{ return bcm2835_gpio_lev(self); `}
end
lib/bcm2835/bcm2835.nit:38,1--97,3