PETRONE / BLE / Protocol / Structs / Light
Modified : 2017.10.18
Introduce the LED control structures
Protocol::LightMode
Communicates one LED mode change
namespace Protocol
{
struct LightMode
{
LightModeBase lightMode;
};
}
- lightMode : Protocol::LightModeBase
Protocol::LightMode2
Communicates two LED mode change
namespace Protocol
{
struct LightMode2
{
LightModeBase lightMode1;
LightModeBase lightMode2;
};
}
- lightMode1, lightMode2 : Protocol::LightModeBase
Protocol::LightModeCommand
Communicates one LED mode and one Command change
namespace Protocol
{
struct LightModeCommand
{
LightModeBase lightMode;
CommandBase command;
};
}
- lightMode : Protocol::LightModeBase
- command : Protocol::CommandBase
Protocol::LightModeCommandIr
Communicates one LED mode and one Command and IR Message change
namespace Protocol
{
struct LightModeCommandIr
{
LightModeBase lightMode;
CommandBase command;
u32 irData;
};
}
- lightMode : Protocol::LightModeBase
- command : Protocol::CommandBase
Protocol::LightModeColor
Communicates one LED mode change with RGB value.
namespace Protocol
{
struct LightModeColor
{
LightModeColorBase lightModeColor;
};
}
- lightModeColor : Protocol::LightModeColorBase
Protocol::LightModeColor2
Communicates two LED mode change with RGB value.
namespace Protocol
{
struct LightModeColor2
{
LightModeColorBase lightModeColor1;
LightModeColorBase lightModeColor2;
};
}
- lightModeColor1, lightModeColor2 : Protocol::LightModeColorBase
Protocol::LightEvent
Communicates one LED event change
namespace Protocol
{
struct LightEvent
{
LightEventBase lightEvent;
};
}
- lightEvent : Protocol::LightEventBase
Protocol::LightEvent2
Communicates two LED event change
namespace Protocol
{
struct LightEvent2
{
LightEventBase lightEvent1;
LightEventBase lightEvent2;
};
}
- lightEvent1, lightEvent2 : Protocol::LightEventBase
Protocol::LightEventCommand
Communicates one LED event and one Command change
namespace Protocol
{
struct LightEventCommand
{
LightEventBase lightEvent;
CommandBase command;
};
}
- lightEvent : Protocol::LightEventBase
- command : Protocol::CommandBase
Protocol::LightEventCommandIr
Communicates one LED event and one Command change and one IR Message
namespace Protocol
{
struct LightEventCommandIr
{
LightEventBase lightEvent;
CommandBase command;
u32 irData;
};
}
- lightEvent : Protocol::LightEventBase
- command : Protocol::CommandBase
Protocol::LightEventColor
Communicates one LED event change with RGB value.
namespace Protocol
{
struct LightEventColor
{
LightEventColorBase lightEventColor;
};
}
- lightEventColor : Protocol::LightEventColorBase
Protocol::LightEventColor2
Communicates two LED event change with RGB value.
namespace Protocol
{
struct LightEventColor2
{
LightEventColorBase lightEventColor1;
LightEventColorBase lightEventColor2;
};
}
- lightEventColor1, lightEventColor2 : Protocol::LightEventColorBase
Protocol::LightModeDefaultColor
Sets the LED start mode with specifies the RGB value. The values are stored in the internal memory of the drone.
namespace Protocol
{
struct LightModeDefaultColor
{
LightModeColorBase lightModeDefaultColor;
};
}
- lightModeDefaultColor : Protocol::LightModeColorBase
Protocol::LightModeDefaultColor2
Sets the two LED start mode with specifies the RGB value. The values are stored in the internal memory of the drone.
namespace Protocol
{
struct LightModeDefaultColor2
{
LightModeColorBase lightModeDefaultColor1;
LightModeColorBase lightModeDefaultColor2;
};
}
- lightModeDefaultColor1, lightModeDefaultColor2 : Protocol::LightModeColorBase
PETRONE
- Intro
- Typedef
- DataType
- Definitions
- Base Structs
- Structs
- Structs - Light
- Firmware Update