Let the stochastic process $\{X_t\}$ be defined by the following SDE (Ito's convention for discretization)
$dX_t=\frac{1}{p}S_tg(X_t)dt+\sqrt{2}dW_t$
where $W_t$ is a standard Wiener process, $g: \mathrm{R}\rightarrow \mathrm{R}$ is a $C^{\infty}$ function and $S_t$ is an other (white) stochastic process described by
\begin{align} &p(S_t=1)=p,\quad p(S_t=0)=1-p\\ & S_t\perp S_\tau, \quad \forall t\neq\tau \end{align} where $p\in(0,1]$
Informally you could think of $S_t$ as a telegraph process https://en.wikipedia.org/wiki/Telegraph_process
My questions are the following:
Does it make sense to define a process like $S_t$?
If 1) has positive answer, can I use the infinitesimal generator formalism (https://en.wikipedia.org/wiki/Infinitesimal_generator_(stochastic_processes)) to derive, for example the Fokker Planck equations for the process $X_t$?
If you have link to similar problems solved in any physics area it would be awesome. Forgive me for being formally imprecise, I am not trained in pure math but I do use SDEs simulation schemes for engineering/physics problems.