{"action":"opened","issue":{"url":"https://api.github.com/repos/GRIFFINCollaboration/data-spy/issues/6","labels_url":"https://api.github.com/repos/GRIFFINCollaboration/data-spy/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/GRIFFINCollaboration/data-spy/issues/6/comments","events_url":"https://api.github.com/repos/GRIFFINCollaboration/data-spy/issues/6/events","html_url":"https://github.com/GRIFFINCollaboration/data-spy/issues/6","id":116825363,"number":6,"title":"Scaler Events","user":{"login":"r3dunlop","id":5428160,"avatar_url":"https://avatars.githubusercontent.com/u/5428160?v=3","gravatar_id":"","url":"https://api.github.com/users/r3dunlop","html_url":"https://github.com/r3dunlop","followers_url":"https://api.github.com/users/r3dunlop/followers","following_url":"https://api.github.com/users/r3dunlop/following{/other_user}","gists_url":"https://api.github.com/users/r3dunlop/gists{/gist_id}","starred_url":"https://api.github.com/users/r3dunlop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r3dunlop/subscriptions","organizations_url":"https://api.github.com/users/r3dunlop/orgs","repos_url":"https://api.github.com/users/r3dunlop/repos","events_url":"https://api.github.com/users/r3dunlop/events{/privacy}","received_events_url":"https://api.github.com/users/r3dunlop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-13T18:40:42Z","updated_at":"2015-11-13T18:40:42Z","closed_at":null,"body":"The data format for Scaler events are as follows:\r\n\r\nThe header is parsed the same way as a GRIFFIN header (label (0x8) ).\r\nIf the Detector Type received from the header is 0xf and contains at least 8 words. The address the scaler represents is given in the \"Address portion of the header\". The words are then given in teh following order\r\n- network packet\r\n  - usual `0xd` with 28 bits for packet id\r\n- low time stamp\r\n  - `0xa` with 28 bits of low time stamp\r\n- 4 scaler words (meaning depends on scaler)\r\n- trailer which contains high time stamp word and scaler type\r\n  - `0xe` \r\n  - next 16 bits are time stamp high\r\n  - \"type\" is next 4 bits\r\n  - next 8 bits should equal first 8 bits of time stamp low\r\n\r\nCurrently, \"type 0\" represents a precision dead time scaler, while \"type 1\" represents a rate scaler\r\n   \r\n\r\n"}}