I'm confused about the conclusion of Wedderburn's structure theorem for semisimple rings.
Let's consider the special case where $R=M^n$ as modules for some simple module $M$.
Wedderburn's theorem says that $R=M_n(D)$ for $D=\text{End}_R(M)^{o}$.
Thus, $R=(D^n)^n$ as modules. I see that $D^n$ is a simple $R$-module.
So, since all simple $R$-modules appear in the decomposition of the $R$-module $R$ as a direct sum of simple $R$-modules, I conclude that $M\cong D^n$. In particular, $M$ can be seen as a $D$-module and $n=\dim_D(M)$ (we can talk about dimension since $D$ is a division ring by Schur's lemma).
My question:
Remembering that $D=\text{End}_R(M)^{o}$, is there a natural way to view $M$ as a $D$-module? What is the ring homomorphism $\text{End}_R(M)^o\rightarrow\text{End}_{\mathbb{Z}}(M)$ that describes the action of $D$ on $M$?
There is an obvious way to view $M$ as an $\text{End}_R(M)$-module since $\text{End}_R(M)$ is a subring of $\text{End}_{\mathbb{Z}}(M)$, but since $D$ is the opposite ring relative to $\text{End}_R(M)$ and not $\text{End}_R(M)$ itself, I am confused.
Motivation: I'd like to be able to look at a semisimple ring and ask how many times a simple module $M$ appears in its decomposition by looking at $M$ as an $\text{End}_R(M)^o$-module and computing the dimension.
An abelian group $M$ has a right $D$ module structure iff it has a left $D^{op}$ module structure.
If $M$ is a left $R$ module, then there is the natural operation of $D$ on the right of $M$. Moving over to the opposite ring, this becomes a left $D^{op}$ structure on $M$.
Here's the way to see where the dimension $n$ comes from for a simple Artinian ring. It's easy to prove that all simple left $R$ modules are isomorphic to each other, so you can start by decomposing $R$ into minimal left ideals. Suppose $R=\oplus_{i=1}^n S$ is a direct sum of simple left $R$ modules. Then $D=End(_RS)$ is a division ring, and since $R^{op}\cong End(_RR)=End(\oplus_{i=1}^n S)\cong M_n(End(_RS))=M_n(D)\cong M_n(D^{op})^{op}$. Then we have that $M_n(D^{op})\cong R$ as rings. But clearly ($D^{op})^n$ is a simple left $M_n(D^{op})$ $(=R!)$ module, therefore $S\cong (D^{op})^n$ as left $R$ modules.
Notice that $D^{op}$ is embedded as the constant diagonal matrices in $R$, and multiplication by these matrices is the same as looking at $(D^{op})^n$ as a left $D^{op}$ vector space. Switching to the right, it is a right $D$ vector space.
Now for general semisimple rings, you first just split the ring into simple rings. Then it's easy to show that the simple left modules are just exactly the simple modules for each simple ring in that factorization. So, you can reduce the general case to finitely many cases like the one above.