Refactor pdus into many files

This commit is contained in:
PhatPhuckDave
2024-07-22 20:35:53 +02:00
parent 3d977b5657
commit 21e2e17f27
12 changed files with 343 additions and 298 deletions

44
pdu/bind.go Normal file
View File

@@ -0,0 +1,44 @@
package pdu
type (
BIND struct {
PDU_HEADER
system_id string
password string
system_type string
interface_version uint8
addr_ton uint8
addr_npi uint8
address_range string
}
BIND_RESP struct {
PDU_HEADER
system_id string
sc_interface_version uint8
}
BIND_RECVEIVER struct {
BIND
}
BIND_RECEIVER_RESP struct {
BIND_RESP
}
BIND_TRANSMITTER struct {
BIND
}
BIND_TRANSMITTER_RESP struct {
BIND_RESP
}
BIND_TRANSCIEVER struct {
BIND
}
BIND_TRANSCIEVER_RESP struct {
BIND_RESP
}
UNBIND struct {
PDU_HEADER
}
UNBIND_RESP struct {
PDU_HEADER
}
)