How do I check API version and microcode version?

Use the API function BusTools_GetRevision(). This is demonstrated by the example program "Example_rev.c".