Mac represents SA53 MAC object
| 68 | |
| 69 | // Mac represents SA53 MAC object |
| 70 | type Mac struct { |
| 71 | device string |
| 72 | port SerialReadWriter |
| 73 | closer io.Closer // nil = caller owns the port |
| 74 | fwMajor int |
| 75 | fwMinor int |
| 76 | fwPatch int |
| 77 | fwCommit string |
| 78 | } |
| 79 | |
| 80 | // Init is to create Mac structure and open serial port |
| 81 | func Init(device string) (*Mac, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected