void avb_1722_1_adp_init() { init_avb_timer(&adp_advertise_timer, 1); init_avb_timer(&adp_readvertise_timer, 100); init_avb_timer(&adp_discovery_timer, 200); init_avb_timer(&ptp_monitor_timer, 100); adp_discovery_state = ADP_DISCOVERY_WAITING; start_avb_timer(&adp_discovery_timer, 1); }
void mrp_mad_begin(mrp_attribute_state *st) { #ifdef MRP_FULL_PARTICIPANT init_avb_timer(&st->leaveTimer, 1); #endif mrp_update_state(MRP_EVENT_BEGIN, st, 0); }
/** * Initialises ACMP state machines, data structures and timers. * * Must be called before any other ACMP function. */ void avb_1722_1_acmp_controller_init() { acmp_controller_state = ACMP_CONTROLLER_WAITING; memset(acmp_controller_inflight_commands, 0, sizeof(avb_1722_1_acmp_inflight_command) * AVB_1722_1_MAX_INFLIGHT_COMMANDS); sequence_id[CONTROLLER] = 0; init_avb_timer(&acmp_inflight_timer[CONTROLLER], 10); acmp_centisecond_counter[CONTROLLER] = 0; start_avb_timer(&acmp_inflight_timer[CONTROLLER], 1); }
void avb_1722_1_acmp_listener_init() { int i; acmp_listener_state = ACMP_LISTENER_WAITING; memset(acmp_listener_inflight_commands, 0, sizeof(avb_1722_1_acmp_inflight_command) * AVB_1722_1_MAX_INFLIGHT_COMMANDS); for (i = 0; i < AVB_1722_1_MAX_LISTENERS; i++) acmp_zero_listener_stream_info(i); sequence_id[LISTENER] = 0; init_avb_timer(&acmp_inflight_timer[LISTENER], 10); acmp_centisecond_counter[LISTENER] = 0; start_avb_timer(&acmp_inflight_timer[LISTENER], 1); }