tri_state_buffer