elpekenin/build_info.h

Get some identification about the version of the code running on your board.


COMMIT_TEXT_LEN
[source]

How long the buffer for commit’s text is.

struct build_info_t
[source]

Information about a build.

char commit[COMMIT_TEXT_LEN]
[source]

Short commit hash, and marker if tree is dirty.

As granted by QMK’s version.h

enabled_features_t features
[source]

Set of features enabled on this build.

Granted by my generated/features.h.

build_info_t get_build_info(void)
[source]

Get current binary’s information.

void set_build_info(build_info_t new_build_info)
[source]

Set the current binary’s information.

This is used so that slave side has up-to-date information, without reflashing both halves. Data is sent over.