Pub/Sub hardware abstraction framework and API