/api/v1/pl/auxAux#
Responses
200OKapplication/json
availablerequiredboolean
reasonstring · nullable
Set when nothing could be mapped — typically satlinkd not running as root, or /dev/mem absent.
regsrequiredarray of AuxRegDRO
AuxRegDRO · 5 fields
namerequiredstring
addrrequiredstring
valueinteger · int32 · nullable
docrequiredstring
What the value means; present even when the read failed, so a client can show the contract without the number.
errorstring · nullable
Why value is absent. Never left implicit: a missing number that does
not say why is indistinguishable from a zero.
Request
curl "http://192.168.2.1:8080/api/v1/pl/aux"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/pl/aux")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/pl/aux"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"available": true,
"reason": "string",
"regs": [
{
"name": "string",
"addr": "string",
"value": 0,
"doc": "string",
"error": "string"
}
]
}/api/v1/pl/interruptsInterrupts#
Responses
200OKapplication/json
statusrequiredinteger · int32
enablerequiredinteger · int32
bitsrequiredarray of string
Request
curl "http://192.168.2.1:8080/api/v1/pl/interrupts"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/pl/interrupts")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/pl/interrupts"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"status": 0,
"enable": 0,
"bits": [
"string"
]
}/api/v1/pl/interrupts/ackAck interrupts#
Request body application/jsonrequired
bitsrequiredinteger · int32
Responses
200OKapplication/json
statusrequiredinteger · int32
enablerequiredinteger · int32
bitsrequiredarray of string
Request
curl -X POST "http://192.168.2.1:8080/api/v1/pl/interrupts/ack" \
-H "Content-Type: application/json" \
-d '{
"bits": 0
}'import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.post(
f"{BASE_URL}/api/v1/pl/interrupts/ack",
json={
"bits": 0,
},
)
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.post(format!("{base_url}/api/v1/pl/interrupts/ack"))
.json(&serde_json::json!({
"bits": 0
}))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"status": 0,
"enable": 0,
"bits": [
"string"
]
}/api/v1/pl/profile-sequencerProfile sequencer#
Responses
200OKapplication/json
staterequiredinteger · int32
statusrequiredinteger · int32
err_code requiredinteger · int32
profile_id requiredinteger · int32
state_name requiredstring
Request
curl "http://192.168.2.1:8080/api/v1/pl/profile-sequencer"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/pl/profile-sequencer")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/pl/profile-sequencer"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"state": 0,
"status": 0,
"err_code": 0,
"profile_id": 0,
"state_name": "string"
}/api/v1/pl/registers/{addr}Read register#
Path parameters
addrrequiredstring
Register address, hex with 0x prefix
Responses
200OKapplication/json
addrrequiredinteger · int32
valuerequiredinteger · int32
400invalid addressapplication/json
Request
curl "http://192.168.2.1:8080/api/v1/pl/registers/<addr>"import requests
BASE_URL = "http://192.168.2.1:8080"
addr = "<addr>" # Register address, hex with 0x prefix
response = requests.get(f"{BASE_URL}/api/v1/pl/registers/{addr}")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let addr = "<addr>"; // Register address, hex with 0x prefix
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/pl/registers/{addr}"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"addr": 0,
"value": 0
}{}/api/v1/pl/statusStatus#
Responses
200OKapplication/json
global_ctrl requiredinteger · int32
versionrequiredinteger · int32
build_id requiredinteger · int32
cfg_epoch requiredinteger · int32
irq_status requiredinteger · int32
irq_enable requiredinteger · int32
Request
curl "http://192.168.2.1:8080/api/v1/pl/status"import requests
BASE_URL = "http://192.168.2.1:8080"
response = requests.get(f"{BASE_URL}/api/v1/pl/status")
response.raise_for_status()
print(response.json())let base_url = "http://192.168.2.1:8080";
let response = reqwest::Client::new()
.get(format!("{base_url}/api/v1/pl/status"))
.send()
.await?
.error_for_status()?;
let body: serde_json::Value = response.json().await?;
println!("{body:#}");Response
{
"global_ctrl": 0,
"version": 0,
"build_id": 0,
"cfg_epoch": 0,
"irq_status": 0,
"irq_enable": 0
}