Includes library modifications to allow access to AIN_4 (AIN_0 / 5)

Committer:
bryantaylor
Date:
Tue Sep 20 21:26:12 2016 +0000
Revision:
0:eafc3fd41f75
hackathon

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bryantaylor 0:eafc3fd41f75 1 class Rpc{{name}} : public RPC {
bryantaylor 0:eafc3fd41f75 2 public:
bryantaylor 0:eafc3fd41f75 3 Rpc{{name}}({{cons_proto}}) : RPC(name), o({{cons_call}}) {}
bryantaylor 0:eafc3fd41f75 4
bryantaylor 0:eafc3fd41f75 5 {{methods}}
bryantaylor 0:eafc3fd41f75 6
bryantaylor 0:eafc3fd41f75 7 virtual const struct rpc_method *get_rpc_methods() {
bryantaylor 0:eafc3fd41f75 8 static const rpc_method rpc_methods[] = {
bryantaylor 0:eafc3fd41f75 9 {{rpc_methods}},
bryantaylor 0:eafc3fd41f75 10 RPC_METHOD_SUPER(RPC)
bryantaylor 0:eafc3fd41f75 11 };
bryantaylor 0:eafc3fd41f75 12 return rpc_methods;
bryantaylor 0:eafc3fd41f75 13 }
bryantaylor 0:eafc3fd41f75 14 static struct rpc_class *get_rpc_class() {
bryantaylor 0:eafc3fd41f75 15 static const rpc_function funcs[] = {
bryantaylor 0:eafc3fd41f75 16 {"new", rpc_function_caller<const char*, {{cons_type}}, &RPC::construct<Rpc{{name}}, {{cons_type}}> >},
bryantaylor 0:eafc3fd41f75 17 RPC_METHOD_END
bryantaylor 0:eafc3fd41f75 18 };
bryantaylor 0:eafc3fd41f75 19 static rpc_class c = {"{{name}}", funcs, NULL};
bryantaylor 0:eafc3fd41f75 20 return &c;
bryantaylor 0:eafc3fd41f75 21 }
bryantaylor 0:eafc3fd41f75 22 private:
bryantaylor 0:eafc3fd41f75 23 {{name}} o;
bryantaylor 0:eafc3fd41f75 24 };