Class of a motion header. More...
#include <Motion.h>
Public Types | |
enum | { NAME_LENGTH = 21, FRAMELENGTH_MIN = 1, FRAMELENGTH_MAX = 20 } |
Static Public Member Functions | |
static void | init (Header &header) |
Initialize the header. More... | |
static bool | set (uint8_t slot, const Header &header) |
Write the header to external EEPROM. More... | |
static bool | get (uint8_t slot, Header &header) |
Read the header from external EEPROM. More... | |
Public Attributes | |
uint8_t | slot |
Slot number of a motion. More... | |
char | name [NAME_LENGTH] |
Motion name. More... | |
uint8_t | frame_length |
Frame length of a motion. More... | |
uint8_t | NON_RESERVED: 5 |
Undefined area. (It is reserved for future changes.) More... | |
uint8_t | use_extra: 1 |
Selector to enable "extra". More... | |
uint8_t | use_jump: 1 |
Selector to enable "jump". More... | |
uint8_t | use_loop: 1 |
Selector to enable "loop". More... | |
uint8_t | loop_begin |
Frame number of loop's beginning. More... | |
uint8_t | loop_end |
Frame number of loop's ending. More... | |
uint8_t | loop_count |
Loop count. (Using 255 as infinity.) More... | |
uint8_t | jump_slot |
Slot number that is used for jumping when the motion's play is finished. More... | |
uint8_t | stop_flags [2] |
Array of stop flags. More... | |
Class of a motion header.
anonymous enum |
|
static |
Read the header from external EEPROM.
[in] | slot | Number of a header. |
[in,out] | header | An instance of header. |
|
static |
Initialize the header.
[in,out] | header | An instance of header. |
|
static |
Write the header to external EEPROM.
[in] | slot | Number of a header. |
[in] | header | An instance of header. |
uint8_t PLEN2::Motion::Header::frame_length |
Frame length of a motion.
uint8_t PLEN2::Motion::Header::jump_slot |
Slot number that is used for jumping when the motion's play is finished.
uint8_t PLEN2::Motion::Header::loop_begin |
Frame number of loop's beginning.
uint8_t PLEN2::Motion::Header::loop_count |
Loop count. (Using 255 as infinity.)
uint8_t PLEN2::Motion::Header::loop_end |
Frame number of loop's ending.
char PLEN2::Motion::Header::name[NAME_LENGTH] |
Motion name.
uint8_t PLEN2::Motion::Header::NON_RESERVED |
Undefined area. (It is reserved for future changes.)
uint8_t PLEN2::Motion::Header::slot |
Slot number of a motion.
uint8_t PLEN2::Motion::Header::stop_flags[2] |
Array of stop flags.
uint8_t PLEN2::Motion::Header::use_extra |
Selector to enable "extra".
uint8_t PLEN2::Motion::Header::use_jump |
Selector to enable "jump".
uint8_t PLEN2::Motion::Header::use_loop |
Selector to enable "loop".