- void (*init)(struct SerialHardware* ctx, struct Serial* ser);
- void (*cleanup)(struct SerialHardware* ctx);
- void (*setbaudrate)(struct SerialHardware* ctx, unsigned long rate);
- void (*setparity)(struct SerialHardware* ctx, int parity);
- void (*enabletxirq)(struct SerialHardware* ctx);
+ void (*init)(struct SerialHardware *ctx, struct Serial *ser);
+ void (*cleanup)(struct SerialHardware *ctx);
+ void (*setBaudrate)(struct SerialHardware *ctx, unsigned long rate);
+ void (*setParity)(struct SerialHardware *ctx, int parity);
+ void (*txStart)(struct SerialHardware *ctx);
+ bool (*txSending)(struct SerialHardware *ctx);