Added getter for last tx state

Hi!,

i've added a getter for the last TX state (although I currently don't use it, so propper testing is not done, it compiles however.), I do have to note that my c/c++ is quite rusty