Nice. What would be useful in addition to this is to get linkable object file (.o) implementing the charging procedure.