The Flight ControlState API allow setting the values for the trim and there is currently no way to set them from the SimpitAPI.
One solution would be to reuse the Rotation message and use the unused bits from the bitmask to indicate that the values in the message should be the new trim value.