Module crs_bind::bindings [−][src]
Re-exports
pub use self::motor_brake_mode_e as motor_brake_mode_e_t; |
pub use self::motor_encoder_units_e as motor_encoder_units_e_t; |
pub use self::motor_gearset_e as motor_gearset_e_t; |
Constants
Functions
| controller_get_analog⚠ | Gets the value of an analog channel (joystick) on a controller. |
| controller_get_digital⚠ | Checks if a digital channel (button) on the controller is currently pressed. |
| millis⚠ | Gets the number of milliseconds since PROS initialized. |
| motor_get_actual_velocity⚠ | Gets the actual velocity of the motor. |
| motor_get_brake_mode⚠ | Gets the brake mode that was set for the motor. |
| motor_get_current_draw⚠ | Gets the current drawn by the motor in mA. |
| motor_get_current_limit⚠ | Gets the current limit for the motor in mA. |
| motor_get_direction⚠ | Gets the direction of movement for the motor. |
| motor_get_efficiency⚠ | Gets the efficiency of the motor in percent. |
| motor_get_encoder_units⚠ | Gets the encoder units that were set for the motor. |
| motor_get_gearing⚠ | Gets the gearset that was set for the motor. |
| motor_get_position⚠ | Gets the absolute position of the motor in its encoder units. |
| motor_get_power⚠ | Gets the power drawn by the motor in Watts. |
| motor_get_target_position⚠ | Gets the target position set for the motor by the user. |
| motor_get_target_velocity⚠ | Gets the velocity commanded to the motor by the user. |
| motor_get_temperature⚠ | Gets the temperature of the motor in degrees Celsius. |
| motor_get_torque⚠ | Gets the torque generated by the motor in Newton Meters (Nm). |
| motor_get_voltage⚠ | Gets the voltage delivered to the motor in millivolts. |
| motor_get_voltage_limit⚠ | Gets the voltage limit set by the user. |
| motor_is_over_current⚠ | Checks if the motor is drawing over its current limit. |
| motor_is_over_temp⚠ | Checks if the motor’s temperature is above its limit. |
| motor_is_reversed⚠ | Gets the operation direction of the motor as set by the user. |
| motor_modify_profiled_velocity⚠ | Changes the output velocity for a profiled movement (motor_move_absolute or motor_move_relative). This will have no effect if the motor is not following a profiled movement. |
| motor_move⚠ | Sets the voltage for the motor from -127 to 127. |
| motor_move_absolute⚠ | Sets the target absolute position for the motor to move to. |
| motor_move_relative⚠ | Sets the relative target position for the motor to move to. |
| motor_move_velocity⚠ | Sets the velocity for the motor. |
| motor_move_voltage⚠ | Sets the output voltage for the motor from -12000 to 12000 in millivolts |
| motor_set_brake_mode⚠ | Sets one of motor_brake_mode_e_t to the motor. |
| motor_set_current_limit⚠ | Sets the current limit for the motor in mA. |
| motor_set_encoder_units⚠ | Sets one of motor_encoder_units_e_t for the motor encoder. |
| motor_set_gearing⚠ | Sets one of motor_gearset_e_t for the motor. |
| motor_set_reversed⚠ | Sets the reverse flag for the motor. |
| motor_set_voltage_limit⚠ | Sets the voltage limit for the motor in Volts. |
| motor_set_zero_position⚠ | Sets the position for the motor in its encoder units. |
| motor_tare_position⚠ | Sets the “absolute” zero position of the motor to its current position. |
| mutex_delete⚠ | Deletes a mutex |
| mutex_recursive_create⚠ | Creates a recursive mutex which can be locked recursively by the owner. |
| mutex_recursive_give⚠ | Gives a recursive mutex. |
| mutex_recursive_take⚠ | Takes a recursive mutex. |
| sem_create⚠ | Creates a counting sempahore. |
| sem_delete⚠ | Deletes a semaphore (or binary semaphore) |
| sem_get_count⚠ | Returns the current value of the semaphore. |
| sem_post⚠ | Increments a semaphore’s value. |
| sem_wait⚠ | Waits for the semaphore’s value to be greater than 0. If the value is already greater than 0, this function immediately returns. |
| serial_enable⚠ | Enables generic serial on the given port. |
| serial_flush⚠ | Clears the internal input and output FIFO buffers. |
| serial_get_read_avail⚠ | Returns the number of bytes available to be read in the the port’s FIFO input buffer. |
| serial_get_write_free⚠ | Returns the number of bytes free in the port’s FIFO output buffer. |
| serial_peek_byte⚠ | Reads the next byte avaliable in the port’s input buffer without removing it. |
| serial_read⚠ | Reads up to the next length bytes from the port’s input buffer and places them in the user supplied buffer. |
| serial_read_byte⚠ | Reads the next byte avaliable in the port’s input buffer. |
| serial_set_baudrate⚠ | Sets the baudrate for the serial port to operate at. |
| serial_write⚠ | Writes up to length bytes from the user supplied buffer to the port’s output buffer. |
| serial_write_byte⚠ | Write the given byte to the port’s output buffer. |
| task_create⚠ | Creates a new task and add it to the list of tasks that are ready to run. |
| task_delay⚠ | Delays a task for a given number of milliseconds. |
| task_delay_until⚠ | Delays a task until a specified time. This function can be used by periodic tasks to ensure a constant execution frequency. |
| task_delete⚠ | Removes a task from the RTOS real time kernel’s management. The task being deleted will be removed from all ready, blocked, suspended and event lists. |
| task_get_by_name⚠ | Gets a task handle from the specified name |
| task_get_current⚠ | Get the currently running task handle. This could be useful if a task wants to tell another task about itself. |
| task_get_name⚠ | Gets the name of the specified task. |
| task_get_priority⚠ | Gets the priority of the specified task. |
| task_get_state⚠ | Gets the state of the specified task. |
| task_notify⚠ | Sends a simple notification to task and increments the notification counter. |
| task_notify_take⚠ | Waits for a notification to be nonzero. |
Type Definitions
| controller_analog_e_t | |
| controller_digital_e_t | |
| controller_id_e_t | |
| motor_brake_mode_e | Indicates the current ‘brake mode’ of a motor. |
| motor_encoder_units_e | Indicates the units used by the motor encoders. |
| motor_gearset_e | Indicates the current internal gear ratio of a motor. |
| mutex_t | |
| sem_t | |
| task_fn_t | |
| task_state_e_t | |
| task_t |