RollerDrive

Public Functions

Type

Name

uint8_t

set_poster (uint8_t dst)

uint8_t

set_mode (RollerMode mode)

uint8_t

set_auto_mode_period (uint32_t period_ms)

uint8_t

set_auto_mode_range (uint8_t from, uint8_t to)

uint8_t

bool

uint8_t

uint8_t

run_ind_motors_up (bool top = false, bool bottom = false)

uint8_t

run_ind_motors_down (bool top = false, bool bottom = false)

uint32_t

uint32_t

void

test_set_event (uint32_t event)

void

test_rele (uint8_t val)

void

test_io (void)

Public Functions Documentation

function RollerDrive

RollerDrive::RollerDrive (
    void 
)

function set_poster

uint8_t RollerDrive::set_poster (
    uint8_t dst
)

Set poster you want do display. Range is 1 to N (N = posters count).

function set_mode

uint8_t RollerDrive::set_mode (
    RollerMode mode
)

Select mode of operation. Some mode requires successfully finished calibration.

uint8_t RollerDrive::set_auto_mode_period (
    uint32_t period_ms
)

Auto mode changes poster after some time. Set this time in miliseconds.

uint8_t RollerDrive::set_auto_mode_range (
    uint8_t from,
    uint8_t to
)

Set auto mode range, ie roll from poster 'start' to poster 'to' and repeat.

function calibration

uint8_t RollerDrive::calibration (
    void 
)

Init and start calibration.

function is_calibrated

bool RollerDrive::is_calibrated (
    void 
)

Was calibration successfully finished?

uint8_t RollerDrive::get_poster_count (
    void 
)

Returns number of posters. Return zero if calibration wasn't finished.

uint8_t RollerDrive::run_ind_motors_up (
    bool top = false,
    bool bottom = false
)

uint8_t RollerDrive::run_ind_motors_down (
    bool top = false,
    bool bottom = false
)

uint8_t RollerDrive::run_ind_motors_stop ()

uint32_t RollerDrive::test_get_state_now (
    void 
)

uint32_t RollerDrive::test_get_state_last (
    void 
)

void RollerDrive::test_set_event (
    uint32_t event
)

function test_rele

void RollerDrive::test_rele (
    uint8_t val
)

Test function. Test rele function.

function test_io

void RollerDrive::test_io (
    void 
)

Debug function. Read and print all IOs.

The documentation for this class was generated from the following file: D:/w/hw-libs/\_libs\_/libraries/RollerDrive.h

Last updated