Skip to content

Commit

Permalink
visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Jul 23, 2023
1 parent 796e02a commit ec79f82
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions Sources/SwiftOCA/OCF/Messages/Command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
import Foundation

public struct Ocp1Parameters: Codable {
var parameterCount: OcaUint8
var parameterData: Data
public var parameterCount: OcaUint8
public var parameterData: Data
}

public struct Ocp1Command: Ocp1Message, Codable {
let commandSize: OcaUint32
let handle: OcaUint32
let targetONo: OcaONo
let methodID: OcaMethodID
let parameters: Ocp1Parameters
public let commandSize: OcaUint32
public let handle: OcaUint32
public let targetONo: OcaONo
public let methodID: OcaMethodID
public let parameters: Ocp1Parameters

var messageSize: OcaUint32 { commandSize }
}
8 changes: 4 additions & 4 deletions Sources/SwiftOCA/OCF/Messages/Response.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
import Foundation

public struct Ocp1Response: Ocp1Message, Codable {
let responseSize: OcaUint32
let handle: OcaUint32
let statusCode: OcaStatus
let parameters: Ocp1Parameters
public let responseSize: OcaUint32
public let handle: OcaUint32
public let statusCode: OcaStatus
public let parameters: Ocp1Parameters

var messageSize: OcaUint32 { responseSize }
}

0 comments on commit ec79f82

Please sign in to comment.