linefollower 2.0.0.0
|
Functions | |
void | linefollower_cfg_setup (linefollower_cfg_t *cfg) |
Config Object Initialization function. | |
LINEFOLLOWER_RETVAL | linefollower_init (linefollower_t *ctx, linefollower_cfg_t *cfg) |
Initialization function. | |
uint8_t | linefollower_get_u1 (linefollower_t *ctx) |
Get status of U1 pin function. | |
uint8_t | linefollower_get_u2 (linefollower_t *ctx) |
Get status of U2 pin function. | |
uint8_t | linefollower_get_u3 (linefollower_t *ctx) |
Get status of U3 pin function. | |
uint8_t | linefollower_get_u4 (linefollower_t *ctx) |
Get status of U4 pin function. | |
uint8_t | linefollower_get_u5 (linefollower_t *ctx) |
Get status of U5 pin function. | |
void | linefollower_data_track (linefollower_t *ctx, linefollower_direction_t *data_track) |
Get status of all pin function. | |
uint8_t | linefollower_get_direction (linefollower_t *ctx) |
Get direction data function. | |
void linefollower_cfg_setup | ( | linefollower_cfg_t * | cfg | ) |
Config Object Initialization function.
cfg | Click configuration structure. |
@description This function initializes click configuration structure to init state.
void linefollower_data_track | ( | linefollower_t * | ctx, |
linefollower_direction_t * | data_track ) |
Get status of all pin function.
ctx | Click object. |
data_track | Data track structure |
This function get status of all pin of the QRE1113 Minature Reective Object Sensor.
uint8_t linefollower_get_direction | ( | linefollower_t * | ctx | ) |
Get direction data function.
ctx | Click object. |
- 0 [ LINEFOLLOWER_DIR_STRAIGHT ] : Straight movement;
- 1 [ LINEFOLLOWER_DIR_LEFT ] : Left movement;
- 2 [ LINEFOLLOWER_DIR_RIGHT ] : Right movement;
- 3 [ LINEFOLLOWER_DIR_SHARP_LEFT ] : Sharp left movement;
- 4 [ LINEFOLLOWER_DIR_SHARP_RIGHT ] : Sharp right movement;
- 5 [ LINEFOLLOWER_DIR_TRACKING_LOST ] : Tracking lost;
This function direction movement data of the QRE1113 Minature Reective Object Sensor.
uint8_t linefollower_get_u1 | ( | linefollower_t * | ctx | ) |
Get status of U1 pin function.
ctx | Click object. |
This function get state of the RST pin U1: QRE1113 Minature Reective Object Sensor.
uint8_t linefollower_get_u2 | ( | linefollower_t * | ctx | ) |
Get status of U2 pin function.
ctx | Click object. |
This function get state of the RST pin U2: QRE1113 Minature Reective Object Sensor.
uint8_t linefollower_get_u3 | ( | linefollower_t * | ctx | ) |
Get status of U3 pin function.
ctx | Click object. |
This function get state of the RST pin U3: QRE1113 Minature Reective Object Sensor.
uint8_t linefollower_get_u4 | ( | linefollower_t * | ctx | ) |
Get status of U4 pin function.
ctx | Click object. |
This function get state of the RST pin U4: QRE1113 Minature Reective Object Sensor.
uint8_t linefollower_get_u5 | ( | linefollower_t * | ctx | ) |
Get status of U5 pin function.
ctx | Click object. |
This function get state of the RST pin U5: QRE1113 Minature Reective Object Sensor.
LINEFOLLOWER_RETVAL linefollower_init | ( | linefollower_t * | ctx, |
linefollower_cfg_t * | cfg ) |
Initialization function.
linefollower | Click object. |
cfg | Click configuration structure. |
@description This function initializes all necessary pins and peripherals used for this click.