Class: Pigpio::Pulse
- Inherits:
-
Object
- Object
- Pigpio::Pulse
- Defined in:
- ext/pigpio/pigpio.c
Class Method Summary collapse
-
.make(gpioOn, gpioOff, usDelay) ⇒ Object
Constructor of gpioPulse_t as Pigpio::Pulse class .
Class Method Details
.make(gpioOn, gpioOff, usDelay) ⇒ Object
Constructor of gpioPulse_t as Pigpio::Pulse class . .
typedef struct
{
uint32_t gpioOn;
uint32_t gpioOff;
uint32_t usDelay;
} gpioPulse_t;
. .
295 296 297 298 299 300 301 302 303 |
# File 'ext/pigpio/pigpio.c', line 295
VALUE pigpio_rbst_gpioPulse_make(VALUE self,VALUE gpioOn,VALUE gpioOff,VALUE usDelay){
VALUE obj;
gpioPulse_t *st;
obj = TypedData_Make_Struct(self, gpioPulse_t, &gpioPulse_data_type, st);
st->gpioOn =NUM2ULONG(gpioOn );
st->gpioOff=NUM2ULONG(gpioOff);
st->usDelay=NUM2ULONG(usDelay);
return obj;
}
|