While the backup utility gives me a json document with my config information, that is not what I am looking for.
When I am looking to implement an endpoint I need the endpoint spec.
odrv0._json_data gives me a json file that looks like the json below. This gives me the name, endpoint number, RW status and the datatype:
AT LEAST IT DID BEFORE 0.5.2 WHEN IT LOOKS LIKE _JSON_DATA WAS REMOVED
Now what do I have to do to get a copy of this? Either through odrivetool or serial.
Why was it removed?
The odrivetool generate-code method does not provide the r/w status of endpoints, plus you have to get information about an endpoint from several places in the code.
{
"name":"",
"id":0,
"type":"json",
"access":"r"
},
{
"name":"vbus_voltage",
"id":1,
"type":"float",
"access":"r"
},
{
"name":"ibus",
"id":2,
"type":"float",
"access":"r"
},
{
"name":"ibus_report_filter_k",
"id":3,
"type":"float",
"access":"rw"
},
{
"name":"serial_number",
"id":4,
"type":"uint64",
"access":"r"
},
{
"name":"hw_version_major",
"id":5,
"type":"uint8",
"access":"r"
},
{
"name":"hw_version_minor",
"id":6,
"type":"uint8",
"access":"r"
},
{
"name":"hw_version_variant",
"id":7,
"type":"uint8",
"access":"r"
}