Documentation
¶
Index ¶
- type DeleteCardRequest
- type DeleteCardResponse
- type DeleteCardsRequest
- type DeleteCardsResponse
- type FindDevicesRequest
- type FindDevicesResponse
- type GetCardByIDRequest
- type GetCardByIDResponse
- type GetCardByIndexRequest
- type GetCardByIndexResponse
- type GetCardsRequest
- type GetCardsResponse
- type GetDoorControlStateRequest
- type GetDoorControlStateResponse
- type GetEventIndexRequest
- type GetEventIndexResponse
- type GetEventRequest
- type GetEventResponse
- type GetListenerRequest
- type GetListenerResponse
- type GetStatusRequest
- type GetStatusResponse
- type GetTimeRequest
- type GetTimeResponse
- type OpenDoorRequest
- type OpenDoorResponse
- type PutCardRequest
- type PutCardResponse
- type RecordSpecialEventsRequest
- type RecordSpecialEventsResponse
- type Request
- type Response
- type SetAddressRequest
- type SetDoorControlStateRequest
- type SetDoorControlStateResponse
- type SetEventIndexRequest
- type SetEventIndexResponse
- type SetListenerRequest
- type SetListenerResponse
- type SetTimeRequest
- type SetTimeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteCardRequest ¶
type DeleteCardRequest struct {
MsgType types.MsgType `uhppote:"value:0x52"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
CardNumber uint32 `uhppote:"offset:8"`
}
type DeleteCardResponse ¶
type DeleteCardResponse struct {
MsgType types.MsgType `uhppote:"value:0x52"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Succeeded bool `uhppote:"offset:8"`
}
type DeleteCardsRequest ¶
type DeleteCardsRequest struct {
MsgType types.MsgType `uhppote:"value:0x54"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
MagicWord uint32 `uhppote:"offset:8"`
}
type DeleteCardsResponse ¶
type DeleteCardsResponse struct {
MsgType types.MsgType `uhppote:"value:0x54"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Succeeded bool `uhppote:"offset:8"`
}
type FindDevicesRequest ¶
type FindDevicesRequest struct {
MsgType types.MsgType `uhppote:"value:0x94"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
}
type FindDevicesResponse ¶
type FindDevicesResponse struct {
MsgType types.MsgType `uhppote:"value:0x94"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
IpAddress net.IP `uhppote:"offset:8"`
SubnetMask net.IP `uhppote:"offset:12"`
Gateway net.IP `uhppote:"offset:16"`
MacAddress types.MacAddress `uhppote:"offset:20"`
Version types.Version `uhppote:"offset:26"`
Date types.Date `uhppote:"offset:28"`
}
type GetCardByIDRequest ¶
type GetCardByIDRequest struct {
MsgType types.MsgType `uhppote:"value:0x5a"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
CardNumber uint32 `uhppote:"offset:8"`
}
type GetCardByIDResponse ¶
type GetCardByIDResponse struct {
MsgType types.MsgType `uhppote:"value:0x5a"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
CardNumber uint32 `uhppote:"offset:8"`
From *types.Date `uhppote:"offset:12"`
To *types.Date `uhppote:"offset:16"`
Door1 bool `uhppote:"offset:20"`
Door2 bool `uhppote:"offset:21"`
Door3 bool `uhppote:"offset:22"`
Door4 bool `uhppote:"offset:23"`
}
type GetCardByIndexRequest ¶
type GetCardByIndexRequest struct {
MsgType types.MsgType `uhppote:"value:0x5c"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Index uint32 `uhppote:"offset:8"`
}
type GetCardByIndexResponse ¶
type GetCardByIndexResponse struct {
MsgType types.MsgType `uhppote:"value:0x5c"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
CardNumber uint32 `uhppote:"offset:8"`
From *types.Date `uhppote:"offset:12"`
To *types.Date `uhppote:"offset:16"`
Door1 bool `uhppote:"offset:20"`
Door2 bool `uhppote:"offset:21"`
Door3 bool `uhppote:"offset:22"`
Door4 bool `uhppote:"offset:23"`
}
type GetCardsRequest ¶
type GetCardsRequest struct {
MsgType types.MsgType `uhppote:"value:0x58"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
}
type GetCardsResponse ¶
type GetCardsResponse struct {
MsgType types.MsgType `uhppote:"value:0x58"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Records uint32 `uhppote:"offset:8"`
}
type GetDoorControlStateRequest ¶
type GetDoorControlStateRequest struct {
MsgType types.MsgType `uhppote:"value:0x82"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Door uint8 `uhppote:"offset:8"`
}
type GetEventIndexRequest ¶
type GetEventIndexRequest struct {
MsgType types.MsgType `uhppote:"value:0xb4"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
}
type GetEventIndexResponse ¶
type GetEventIndexResponse struct {
MsgType types.MsgType `uhppote:"value:0xb4"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Index uint32 `uhppote:"offset:8"`
}
type GetEventRequest ¶
type GetEventRequest struct {
MsgType types.MsgType `uhppote:"value:0xb0"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Index uint32 `uhppote:"offset:8"`
}
type GetEventResponse ¶
type GetEventResponse struct {
MsgType types.MsgType `uhppote:"value:0xb0"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Index uint32 `uhppote:"offset:8"`
Type uint8 `uhppote:"offset:12"`
Granted bool `uhppote:"offset:13"`
Door uint8 `uhppote:"offset:14"`
Direction uint8 `uhppote:"offset:15"`
CardNumber uint32 `uhppote:"offset:16"`
Timestamp *types.DateTime `uhppote:"offset:20"`
Reason uint8 `uhppote:"offset:27"`
}
type GetListenerRequest ¶
type GetListenerRequest struct {
MsgType types.MsgType `uhppote:"value:0x92"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
}
type GetListenerResponse ¶
type GetStatusRequest ¶
type GetStatusRequest struct {
MsgType types.MsgType `uhppote:"value:0x20"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
}
type GetStatusResponse ¶
type GetStatusResponse struct {
MsgType types.MsgType `uhppote:"value:0x20"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
EventIndex uint32 `uhppote:"offset:8"`
EventType byte `uhppote:"offset:12"`
Granted bool `uhppote:"offset:13"`
Door byte `uhppote:"offset:14"`
Direction uint8 `uhppote:"offset:15"`
CardNumber uint32 `uhppote:"offset:16"`
Timestamp types.DateTime `uhppote:"offset:20"`
Reason uint8 `uhppote:"offset:27"`
Door1State bool `uhppote:"offset:28"`
Door2State bool `uhppote:"offset:29"`
Door3State bool `uhppote:"offset:30"`
Door4State bool `uhppote:"offset:31"`
Door1Button bool `uhppote:"offset:32"`
Door2Button bool `uhppote:"offset:33"`
Door3Button bool `uhppote:"offset:34"`
Door4Button bool `uhppote:"offset:35"`
SystemError uint8 `uhppote:"offset:36"`
SystemDate types.SystemDate `uhppote:"offset:51"`
SystemTime types.SystemTime `uhppote:"offset:37"`
SequenceId uint32 `uhppote:"offset:40"`
SpecialInfo uint8 `uhppote:"offset:48"`
RelayState uint8 `uhppote:"offset:49"` // bitmap (0=locked, 1=unlocked, 0000:all doors locked)
InputState uint8 `uhppote:"offset:50"` // bitmap (bit 0: force locked, bit 1: fire alarm)
}
type GetTimeRequest ¶
type GetTimeRequest struct {
MsgType types.MsgType `uhppote:"value:0x32"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
}
type GetTimeResponse ¶
type OpenDoorRequest ¶
type OpenDoorRequest struct {
MsgType types.MsgType `uhppote:"value:0x40"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Door uint8 `uhppote:"offset:8"`
}
type OpenDoorResponse ¶
type OpenDoorResponse struct {
MsgType types.MsgType `uhppote:"value:0x40"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Succeeded bool `uhppote:"offset:8"`
}
type PutCardRequest ¶
type PutCardRequest struct {
MsgType types.MsgType `uhppote:"value:0x50"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
CardNumber uint32 `uhppote:"offset:8"`
From types.Date `uhppote:"offset:12"`
To types.Date `uhppote:"offset:16"`
Door1 bool `uhppote:"offset:20"`
Door2 bool `uhppote:"offset:21"`
Door3 bool `uhppote:"offset:22"`
Door4 bool `uhppote:"offset:23"`
}
type PutCardResponse ¶
type PutCardResponse struct {
MsgType types.MsgType `uhppote:"value:0x50"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Succeeded bool `uhppote:"offset:8"`
}
type RecordSpecialEventsRequest ¶ added in v0.6.7
type RecordSpecialEventsRequest struct {
MsgType types.MsgType `uhppote:"value:0x8e"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Enable bool `uhppote:"offset:8"`
}
Request message layout for 'record special events' (function code 0x8e). Enables or disables events for door open, door closed and door button pressed.
type RecordSpecialEventsResponse ¶ added in v0.6.7
type RecordSpecialEventsResponse struct {
MsgType types.MsgType `uhppote:"value:0x8e"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Succeeded bool `uhppote:"offset:8"`
}
Response message layout for 'record special events' (function code 0x8e).
type SetAddressRequest ¶
type SetEventIndexRequest ¶
type SetEventIndexResponse ¶
type SetEventIndexResponse struct {
MsgType types.MsgType `uhppote:"value:0xb2"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Changed bool `uhppote:"offset:8"`
}
type SetListenerRequest ¶
type SetListenerResponse ¶
type SetListenerResponse struct {
MsgType types.MsgType `uhppote:"value:0x90"`
SerialNumber types.SerialNumber `uhppote:"offset:4"`
Succeeded bool `uhppote:"offset:8"`
}
type SetTimeRequest ¶
type SetTimeResponse ¶
Source Files
¶
- delete_card.go
- delete_cards.go
- find_devices.go
- get_card.go
- get_cards.go
- get_door_control_state.go
- get_event.go
- get_event_index.go
- get_listener.go
- get_status.go
- get_time.go
- message.go
- open.go
- put_card.go
- record_special_events.go
- requests.go
- responses.go
- set_address.go
- set_door_control_state.go
- set_event_index.go
- set_listener.go
- set_time.go
Click to show internal directories.
Click to hide internal directories.