def get_trigger_data(value, mode=<NUM_LIT:0>):
if mode == <NUM_LIT:2>:<EOL><INDENT>return np.right_shift(np.bitwise_and(value, <NUM_LIT>), <NUM_LIT:16>), np.bitwise_and(value, <NUM_LIT>)<EOL><DEDENT>else:<EOL><INDENT>return np.bitwise_and(value, <NUM_LIT>)<EOL><DEDENT>
Returns 31bit trigger counter (mode=0), 31bit timestamp (mode=1), 15bit timestamp and 16bit trigger counter (mode=2)