/*------------------------------------------------- ay31015_set_receiver_clock - set receive clock -------------------------------------------------*/ void ay31015_set_receiver_clock( device_t *device, double new_clock ) { ay31015_t *ay31015 = get_safe_token(device); ay31015->rx_clock = new_clock; ay31015_update_rx_timer( device ); }
static DEVICE_START(ay31015) { ay31015_t *ay31015 = get_safe_token(device); ay31015->config = (const ay31015_config*)device->static_config(); ay31015->tx_clock = ay31015->config->transmitter_clock; ay31015->rx_clock = ay31015->config->receiver_clock; ay31015->rx_timer = device->machine().scheduler().timer_alloc(FUNC(ay31015_rx_process), (void *)device ); ay31015->tx_timer = device->machine().scheduler().timer_alloc(FUNC(ay31015_tx_process), (void *)device ); ay31015_update_rx_timer( device ); ay31015_update_tx_timer( device ); }