public String getFieldName(ComplexTypeDefinition baseType, NamedField field) {
        StringBuilder sb = new StringBuilder();
        if (baseType != thisType) {
            sb.append(camelCaseToSnakeCase(baseType.getName())).append("_");
        }
        sb.append(camelCaseToSnakeCase(field.getName()));
        return sb.toString();
    }
Little helper that converts a given type name in camel-case into a c-style snake-case expression.
In addition, it appends a prefix for the protocol name and the output flavor.

@param typeName camel-case type name
@return c-style type name
code-generation/language-c/src/main/java/org/apache/plc4x/language/c/CLanguageTemplateHelper.java