17 const unsigned char *,
TypeId,
22 std::uint8_t,
unsigned char *,
TypeId,
25 FbType,
unsigned char *, std::uint16_t,
28 FbType,
const unsigned char *, std::uint16_t,
65 return pin < 64U && (
store_mask & (std::uint64_t{1} << pin)) != 0U;
70 return pin < 64U && (
load_mask & (std::uint64_t{1} << pin)) != 0U;
101 (std::uint64_t{1} << pin)) != 0U;
108 (std::uint64_t{1} << pin)) != 0U;
111 void init(
unsigned char *storage, std::int64_t task_period_ns)
const
117 std::uint64_t value)
const
123 std::uint64_t &value)
const
128 void cycle(
unsigned char *storage, std::int64_t task_period_ns)
const
154 for(std::size_t index = 0; index < result.size(); ++index) {
179 if(dispatcher.id ==
id)
return &dispatcher;
189 if(dispatcher ==
nullptr || fb_desc ==
nullptr ||
195 if(
type ==
nullptr)
return false;
196 const auto stores = [&] {
201 const auto loads = [&] {
218 if(dispatcher ==
nullptr || fb_desc ==
nullptr ||
230 for(std::size_t index = 0; index < fb_desc->
pin_count; ++index) {
const BindingFbDesc * find(BindingFbId id) const noexcept
const TypeTable & type_table() const noexcept
const TypeDesc * get(TypeId id) const noexcept
constexpr BindingStoreOp kStore
constexpr auto kDispatchers
constexpr std::array< BindingDispatcher, generated::kStBindingFbs.size()> make_dispatchers()
constexpr BindingStoreSequenceOp kStoreSequence
constexpr BindingLoadOp kLoad
constexpr BindingStoreTaggedReferenceOp kStoreTaggedReference
constexpr BindingInitOp kInit
constexpr BindingStoreObjectOp kStoreObject
constexpr BindingLoadObjectOp kLoadObject
constexpr BindingLoadTaggedReferenceOp kLoadTaggedReference
constexpr BindingCycleOp kCycle
constexpr BindingLoadSequenceOp kLoadSequence
constexpr StBindingNativeCapabilityMasks st_binding_native_capabilities(StBindingFbType type) noexcept
constexpr std::array< StBindingFbMetadata, 134 > kStBindingFbs
bool(*)( FbType, unsigned char *, std::uint16_t, generated::StBindingNativeSequenceValue) BindingStoreSequenceOp
bool(*)( FbType, const unsigned char *, std::uint16_t, generated::StBindingNativeSequenceValue &) BindingLoadSequenceOp
bool fb_load_object(FbType type, const unsigned char *storage, std::uint8_t pin, unsigned char *bytes, TypeId type_id, std::uint32_t size) noexcept
bool fb_store_tagged_reference(FbType type, unsigned char *storage, std::uint16_t pin, TypeId type_id, generated::StBindingNativeTaggedReferenceValue value) noexcept
bool(*)(FbType, const unsigned char *, std::uint16_t, std::uint64_t &) BindingLoadOp
void fb_cycle(FbType type, unsigned char *storage, std::int64_t task_period_ns=0)
bool fb_store_scalar(FbType type, unsigned char *storage, std::uint16_t pin, std::uint64_t bits) noexcept
bool(*)( FbType, unsigned char *, std::uint16_t, TypeId, generated::StBindingNativeTaggedReferenceValue) BindingStoreTaggedReferenceOp
bool(*)(FbType, unsigned char *, std::uint16_t, std::uint64_t) BindingStoreOp
void(*)(FbType, unsigned char *, std::int64_t) BindingInitOp
bool fb_store_object(FbType type, unsigned char *storage, std::uint8_t pin, const unsigned char *bytes, TypeId type_id, std::uint32_t size) noexcept
bool(*)( FbType, const unsigned char *, std::uint16_t, TypeId, generated::StBindingNativeTaggedReferenceValue &) BindingLoadTaggedReferenceOp
void(*)(FbType, unsigned char *, std::int64_t) BindingCycleOp
bool binding_fb_registered(BindingFbId id) noexcept
const BindingDispatcher * binding_dispatcher(BindingFbId id) noexcept
void fb_init(FbType type, unsigned char *storage, std::int64_t task_period_ns)
bool fb_store_sequence(FbType type, unsigned char *storage, std::uint16_t pin, generated::StBindingNativeSequenceValue value) noexcept
std::uint16_t BindingPinId
bool(*)(FbType, const unsigned char *, std::uint8_t, unsigned char *, TypeId, std::uint32_t) BindingLoadObjectOp
bool fb_load_tagged_reference(FbType type, const unsigned char *storage, std::uint16_t pin, TypeId type_id, generated::StBindingNativeTaggedReferenceValue &value) noexcept
bool(*)(FbType, unsigned char *, std::uint8_t, const unsigned char *, TypeId, std::uint32_t) BindingStoreObjectOp
bool binding_pin_registered(BindingFbId fb_id, BindingPinId pin_id) noexcept
const BindingManifest & binding_manifest()
constexpr std::size_t fb_size(FbType type) noexcept
bool fb_load_scalar(FbType type, const unsigned char *storage, std::uint16_t pin, std::uint64_t &bits) noexcept
bool fb_load_sequence(FbType type, const unsigned char *storage, std::uint16_t pin, generated::StBindingNativeSequenceValue &value) noexcept
generated::StBindingFbType FbType
BindingStoreTaggedReferenceOp store_tagged_reference_op
std::uint64_t object_store_mask
BindingStoreObjectOp store_object_op
void cycle(unsigned char *storage, std::int64_t task_period_ns) const
bool loads_sequence(BindingPinId pin) const
void init(unsigned char *storage, std::int64_t task_period_ns) const
std::uint64_t tagged_reference_store_mask
std::uint64_t tagged_reference_load_mask
std::uint64_t sequence_store_mask
bool stores(BindingPinId pin) const
bool loads(BindingPinId pin) const
bool stores_sequence(BindingPinId pin) const
std::size_t storage_size() const
BindingLoadSequenceOp load_sequence_op
std::uint64_t object_load_mask
bool stores_object(BindingPinId pin) const
bool stores_tagged_reference(BindingPinId pin) const
std::uint64_t sequence_load_mask
bool store(unsigned char *storage, BindingPinId pin, std::uint64_t value) const
bool load(const unsigned char *storage, BindingPinId pin, std::uint64_t &value) const
BindingLoadObjectOp load_object_op
bool loads_tagged_reference(BindingPinId pin) const
BindingLoadTaggedReferenceOp load_tagged_reference_op
bool loads_object(BindingPinId pin) const
BindingStoreSequenceOp store_sequence_op
const BindingPinDesc * pins
std::uint64_t store_tagged_reference
std::uint64_t store_sequence
std::uint64_t load_tagged_reference
std::uint64_t load_scalar
std::uint64_t store_scalar
std::uint64_t load_sequence
std::uint64_t load_object
std::uint64_t store_object