Basic definitions for the native board.
More...
Basic definitions for the native board.
The native board uses call level hardware simulation
- Author
- Ludwig Knüpfer ludwi.nosp@m.g.kn.nosp@m.uepfe.nosp@m.r@fu.nosp@m.-berl.nosp@m.in.d.nosp@m.e
Definition in file board.h.
#include <stdint.h>
#include <motor_driver.h>
Go to the source code of this file.
|
#define | LED0_ON (_native_LED_RED_ON()) |
|
#define | LED0_OFF (_native_LED_RED_OFF()) |
|
#define | LED0_TOGGLE (_native_LED_RED_TOGGLE()) |
|
#define | LED1_ON (_native_LED_GREEN_ON()) |
|
#define | LED1_OFF (_native_LED_GREEN_OFF()) |
|
#define | LED1_TOGGLE (_native_LED_GREEN_TOGGLE()) |
|
void | _native_LED_GREEN_OFF (void) |
|
void | _native_LED_GREEN_ON (void) |
|
void | _native_LED_GREEN_TOGGLE (void) |
|
void | _native_LED_RED_OFF (void) |
|
void | _native_LED_RED_ON (void) |
|
void | _native_LED_RED_TOGGLE (void) |
|
|
#define | MTD_PAGE_SIZE (256) |
|
#define | MTD_SECTOR_SIZE (4096) |
|
#define | MTD_SECTOR_NUM (2048) |
|
#define | MTD_NATIVE_FILENAME "MEMORY.bin" |
|
|
#define | SPIFFS_READ_ONLY (0) |
|
#define | SPIFFS_SINGLETON (0) |
|
#define | SPIFFS_HAL_CALLBACK_EXTRA (1) |
|
#define | SPIFFS_CACHE (1) |
|
◆ native_motor_driver_qdec_simulation()
void native_motor_driver_qdec_simulation |
( |
const motor_driver_t |
motor_driver, |
|
|
uint8_t |
motor_id, |
|
|
int32_t |
pwm_duty_cycle |
|
) |
| |
Simulate QDEC on motor_set() calls.
- Parameters
-
[in] | motor_driver | motor driver to which motor is attached |
[in] | motor_id | motor ID on driver |
[in] | pwm_duty_cycle | Signed PWM duty_cycle to set motor speed and direction |
- Returns
- 0 on success