-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from OpenShock/feature/implement-flatbuffers
Implement flatbuffers
- Loading branch information
Showing
15 changed files
with
442 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
#pragma once | ||
|
||
#include "ShockerCommandType.h" | ||
|
||
#include <esp32-hal.h> | ||
|
||
#include <cstdint> | ||
#include <vector> | ||
|
||
namespace OpenShock::Rmt::PetTrainerEncoder { | ||
std::vector<rmt_data_t> GetSequence(std::uint16_t shockerId, std::uint8_t method, std::uint8_t intensity); | ||
std::vector<rmt_data_t> GetSequence(std::uint16_t shockerId, OpenShock::ShockerCommandType type, std::uint8_t intensity); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
#pragma once | ||
|
||
#include "ShockerCommandType.h" | ||
|
||
#include <esp32-hal.h> | ||
|
||
#include <cstdint> | ||
#include <vector> | ||
|
||
namespace OpenShock::Rmt::XlcEncoder { | ||
std::vector<rmt_data_t> | ||
GetSequence(std::uint16_t transmitterId, std::uint8_t channelId, std::uint8_t method, std::uint8_t intensity); | ||
std::vector<rmt_data_t> GetSequence(std::uint16_t transmitterId, | ||
std::uint8_t channelId, | ||
OpenShock::ShockerCommandType type, | ||
std::uint8_t intensity); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
namespace OpenShock { | ||
|
||
enum ShockerCommandType : std::uint8_t { | ||
Stop = 0, | ||
Shock = 1, | ||
Vibrate = 2, | ||
Sound = 3, | ||
}; | ||
|
||
} // namespace OpenShock |
Oops, something went wrong.