| 
    upm
    1.0.2
    
   Sensor/Actuator repository for libmraa (v1.1.1) 
   | 
 

Go to the source code of this file.
Data Structures | |
| struct | _uln200xa_context | 
Functions | |
| uln200xa_context | uln200xa_init (int stepsPerRev, unsigned int i1, unsigned int i2, unsigned int i3, unsigned int i4) | 
| void | uln200xa_close (uln200xa_context dev) | 
| void | uln200xa_set_speed (const uln200xa_context dev, unsigned int speed) | 
| void | uln200xa_set_direction (const uln200xa_context dev, ULN200XA_DIRECTION_T dir) | 
| void | uln200xa_stepper_steps (const uln200xa_context dev, unsigned int steps) | 
| void | uln200xa_release (const uln200xa_context dev) | 
Typedefs | |
| typedef struct _uln200xa_context * | uln200xa_context | 
Enumerations | |
| enum | ULN200XA_DIRECTION_T { ULN200XA_DIR_CW = 0x01, ULN200XA_DIR_CCW = 0x02 } | 
| uln200xa_context uln200xa_init | ( | int | stepsPerRev, | 
| unsigned int | i1, | ||
| unsigned int | i2, | ||
| unsigned int | i3, | ||
| unsigned int | i4 | ||
| ) | 
ULN200XA constructor
| stepsPerRev | Number of steps per full revolution | 
| i1 | Digital pin to use for stepper input 1 | 
| i2 | Digital pin to use for stepper input 2 | 
| i3 | Digital pin to use for stepper input 3 | 
| i4 | Digital pin to use for stepper input 4 | 

| void uln200xa_close | ( | uln200xa_context | dev | ) | 
ULN200XA destructor


| void uln200xa_set_speed | ( | const uln200xa_context | dev, | 
| unsigned int | speed | ||
| ) | 
Sets the speed of the stepper motor in revolutions per minute (RPM)
| dev | Device context | 
| speed | Speed to set the motor to, in RPM | 

| void uln200xa_set_direction | ( | const uln200xa_context | dev, | 
| ULN200XA_DIRECTION_T | dir | ||
| ) | 
Sets the direction of the motor, clockwise or counterclockwise
| dev | Device context | 
| dir | Direction to set the motor to | 

| void uln200xa_stepper_steps | ( | const uln200xa_context | dev, | 
| unsigned int | steps | ||
| ) | 
Steps the stepper motor a specified number of steps
| dev | Device context | 
| steps | Number of steps to move the stepper motor | 

| void uln200xa_release | ( | const uln200xa_context | dev | ) | 
Releases the stepper motor by removing power
| dev | Device context | 

| typedef struct _uln200xa_context * uln200xa_context | 
Device context
| enum ULN200XA_DIRECTION_T | 
Enum to specify the direction of a motor
 1.8.6